KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > module > workflow > flows > FlowDefinitionManager


1 /**
2  *
3  */

4 package info.magnolia.module.workflow.flows;
5
6 import java.util.List JavaDoc;
7
8 import openwfe.org.engine.workitem.LaunchItem;
9
10 /**
11  * Manages flow definitions.Configures the item to use a specifig flow.
12  * @author philipp
13  * @version $Id: FlowDefinitionManager.java 7307 2006-11-09 19:15:20Z philipp $
14  *
15  */

16 public interface FlowDefinitionManager {
17
18     /**
19      * Configure the launchItem, so that it will use the workflow
20      */

21     void configure(LaunchItem launchItem, String JavaDoc workflowName) throws FlowDefinionException;
22     
23     /**
24      * The flow name gets extracted out of the workflow definition.
25      * @param definition the workflow definition xml
26      */

27     void saveDefinition(String JavaDoc definition) throws FlowDefinionException;
28     
29     /**
30      * Read the workflow definition stored with this name
31      */

32     String JavaDoc readDefinition(String JavaDoc workflowName) throws FlowDefinionException;
33
34     /**
35      * List all available workflow names
36      */

37     List JavaDoc getDefinitionNames() throws FlowDefinionException;
38 }
39
Popular Tags