[ Index ] |
PHP Cross Reference of Eventum |
[Summary view] [Print] [Text view]
1 <html> 2 <head> 3 <title>Eventum - Workflow API</title> 4 </head> 5 <body> 6 <h1>Workflow API</h1> 7 <p> 8 Author: <i><a href="mailto:bryan@mysql.com">Bryan Alsdorf</a></i><br /> 9 Created: <i>2004-08-27</i> 10 </p> 11 <p>The workflow API is used to provide custom functionality to Eventum. The basic idea is 12 when an event happens (new issue, new note, blocked email, etc.) Eventum calls the workflow 13 class specified for that project. 14 </p> 15 <h2>Getting Started</h2> 16 <p>To write your own Workflow class create a file named "class.my_name.php" in <i>/eventum/include/workflow/</i>. 17 In that file, create a class named "my_name_Workflow_Backend" that extends "Abstract_Workflow_Backend". 18 Now you can add methods to that class to handle specific events. You can copy the method signatures 19 from <i>/eventum/include/workflow/class.abstract_workflow_backend.php</i> to get started. <br /> 20 An example workflow implementation is in <i>/eventum/include/workflow/class.example_workflow.php</i>. 21 </p> 22 <p> 23 Once you have your class created you must set your project to use it. 24 <ul> 25 <li>Login to eventum with your administrative account.</li> 26 <li>Go to "Administration" and click the the name of the project you want to 27 use the workflow class.</li> 28 <li>Select "my_name" from the dropdown list next to "Workflow Backend"</li> 29 <li>Click "Update Project"</li> 30 </ul> 31 Your project should now be using your workflow class. 32 </p> 33 <h2>Individual methods</h2> 34 <p> 35 Please see <i>/eventum/include/workflow/class.abstract_workflow_backend.php</i> for the 36 individual methods you can override. 37 </p> 38 <h2>Future Direction</h2> 39 <p> 40 As Eventum is developed more methods will be added to the workflow class. If you need a new workflow method, 41 or you need more arguments passed to an existing method please email the 42 <a href="mailto:eventum-devel@lists.mysql.com">Eventum development list</a>. 43 </p> 44 </body> 45 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 19 21:21:33 2007 | Cross-referenced by PHPXref 0.7 |