| java.lang.Object org.apache.lenya.workflow.impl.WorkflowEngineImpl
WorkflowEngineImpl | public class WorkflowEngineImpl implements WorkflowEngine(Code) | | Workflow engine implementation.
version: $Id: WorkflowEngineImpl.java 473861 2006-11-12 03:51:14Z gregor $ |
Method Summary | |
public boolean | canFire(Transition transition, Workflow workflow, Workflowable workflowable) Checks if a transition can fire.
Parameters: transition - The transition. Parameters: workflow - The workflow. Parameters: workflowable - The workflowable. | public boolean | canInvoke(Workflowable workflowable, Workflow workflow, String event) | protected Version | createNewVersion(Workflowable workflowable, Workflow workflow, String event, String destination) Creates a new version.
Parameters: workflowable - The workflowable. Parameters: workflow - The workflow. Parameters: event - The event. Parameters: destination - The destination. | protected List | getFiringTransitions(Workflowable workflowable, Workflow workflow, String event) Returns the transitions that would fire in a certain situation.
Parameters: workflowable - The workflowable. Parameters: workflow - The workflow. Parameters: event - The event. | public void | invoke(Workflowable workflowable, Workflow workflow, String event) |
createNewVersion | protected Version createNewVersion(Workflowable workflowable, Workflow workflow, String event, String destination) throws WorkflowException(Code) | | Creates a new version.
Parameters: workflowable - The workflowable. Parameters: workflow - The workflow. Parameters: event - The event. Parameters: destination - The destination. A version. throws: WorkflowException - if an error occurs. |
getFiringTransitions | protected List getFiringTransitions(Workflowable workflowable, Workflow workflow, String event) throws WorkflowException(Code) | | Returns the transitions that would fire in a certain situation.
Parameters: workflowable - The workflowable. Parameters: workflow - The workflow. Parameters: event - The event. A list of transitions. throws: WorkflowException - if an error occurs. |
|
|