|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.flow.model.WorkflowSystem
Implementatino class for a workflow system service. This is also the service to be initialized by the JWeb service factory.
| Field Summary | |
protected IRoleManager |
allRoules
The role manager |
protected ITransitionManager |
allTransitions
The transition manager |
protected java.util.Date |
creationDate
|
protected int |
generation
|
protected java.util.LinkedList |
models
The models of the system. |
| Constructor Summary | |
WorkflowSystem()
|
|
| Method Summary | |
void |
addModel(IWorkflowModel model)
Add a model. |
void |
configure(org.jdom.Element config)
Pass the Configuration to the Configurable
class. |
java.util.Date |
getCreationDate()
Return the creation date (start of this generation). |
IFormManager |
getFormManager()
Get the form factory. |
int |
getGeneration()
Return the generation counter (starting at 1). |
java.util.Iterator |
getModels()
Get the models. |
IParticipantManager |
getParticipants()
Get the participant subservice. |
IRoleManager |
getRoles()
Get the role subservice. |
IScreenManager |
getScreenManager()
Get the screen factory. |
IScreenManager |
getScreens()
Get the screen instances subservice. |
ITransitionManager |
getTransitionManager()
Get the transition instances subservice. |
void |
removeModel(IWorkflowModel model)
Remove a model. |
void |
startWorkflow(java.lang.String id,
Parameter[] params)
Start a workflow with the given parameters |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected ITransitionManager allTransitions
protected IRoleManager allRoules
protected java.util.LinkedList models
protected java.util.Date creationDate
protected int generation
| Constructor Detail |
public WorkflowSystem()
| Method Detail |
public void configure(org.jdom.Element config)
IConfigurableConfiguration to the Configurable
class. This method must always be called after the constructor and before any other method.configure in interface IConfigurableorg.jwarp.service.configuration.IConfigurableconfiguration - the class configurations.public java.util.Date getCreationDate()
IWorkflowSystemgetCreationDate in interface IWorkflowSystemorg.jwarp.flow.model.IWorkflowSystempublic int getGeneration()
IWorkflowSystemgetGeneration in interface IWorkflowSystemorg.jwarp.flow.model.IWorkflowSystempublic IParticipantManager getParticipants()
getParticipants in interface IWorkflowSystempublic IRoleManager getRoles()
getRoles in interface IWorkflowSystempublic ITransitionManager getTransitionManager()
getTransitionManager in interface IWorkflowSystempublic IScreenManager getScreenManager()
getScreenManager in interface IWorkflowSystempublic IScreenManager getScreens()
public IFormManager getFormManager()
getFormManager in interface IWorkflowSystempublic java.util.Iterator getModels()
getModels in interface IWorkflowSystempublic void addModel(IWorkflowModel model)
addModel in interface IWorkflowSystemThe - modelpublic void removeModel(IWorkflowModel model)
removeModel in interface IWorkflowSystemThe - model
public void startWorkflow(java.lang.String id,
Parameter[] params)
throws NotFoundException,
InitializationException,
TransitionInitException,
ParameterException,
ParameterNotFoundException
startWorkflow in interface IWorkflowSystemThe - id string of the workflow (Form: ModelName.FlowName)The - parameters for initializing the first transitionNotFoundException - If the workflow requested could not be locatedInitException - If the initialization of the workflow failed basicallyTransitionInitException - If the first transition could not be initialised, that
means if parameters are invalid or missingParameterException - If the first transition validation failed, that means if parameters are invalidParameterNotFoundException - If the first transition validation failed, that means if parameters are missing
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||