Location: PHPKode > projects > Eventum > eventum-2.2/docs/Workflow_API.html
<html>
<head>
<title>Eventum - Workflow API</title>
</head>
<body>
<h1>Workflow API</h1>
<p>
    Author: <i><a href="mailto:hide@address.com">Bryan Alsdorf</a></i><br />
    Created: <i>2004-08-27</i>
</p>
<p>The workflow API is used to provide custom functionality to Eventum. The basic idea is
when an event happens (new issue, new note, blocked email, etc.) Eventum calls the workflow
class specified for that project.
</p>
<h2>Getting Started</h2>
<p>To write your own Workflow class create a file named "class.my_name.php" in <i>/eventum/include/workflow/</i>.
In that file, create a class named "my_name_Workflow_Backend" that extends "Abstract_Workflow_Backend".
Now you can add methods to that class to handle specific events. You can copy the method signatures
from <i>/eventum/include/workflow/class.abstract_workflow_backend.php</i> to get started. <br />
An example workflow implementation is in <i>/eventum/include/workflow/class.example_workflow.php</i>.
</p>
<p>
Once you have your class created you must set your project to use it.
<ul>
    <li>Login to eventum with your administrative account.</li>
    <li>Go to &quot;Administration&quot; and click the the name of the project you want to
        use the workflow class.</li>
    <li>Select &quot;my_name&quot; from the dropdown list next to &quot;Workflow Backend&quot;</li>
    <li>Click &quot;Update Project&quot;</li>
</ul>
Your project should now be using your workflow class.
</p>
<h2>Individual methods</h2>
<p>
Please see <i>/eventum/include/workflow/class.abstract_workflow_backend.php</i> for the
individual methods you can override.
</p>
<h2>Future Direction</h2>
<p>
As Eventum is developed more methods will be added to the workflow class. If you need a new workflow method,
or you need more arguments passed to an existing method please email the 
<a href="mailto:eventum-hide@address.com">Eventum development list</a>.
</p>
</body>
</html>
Return current item: Eventum