|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.apache.lenya.workflow.impl.WorkflowImpl
public class WorkflowImpl
Implementation of a workflow schema.
| Field Summary |
|---|
| Fields inherited from interface org.apache.lenya.workflow.Workflow |
|---|
DEFAULT_PREFIX, NAMESPACE |
| Constructor Summary | |
|---|---|
protected |
WorkflowImpl(StateImpl initialState)
Creates a new instance of WorkflowImpl. |
| Method Summary | |
|---|---|
protected void |
addEvent(EventImpl event)
Adds an event. |
protected void |
addTransition(TransitionImpl transition)
Adds a transition. |
protected void |
addVariable(BooleanVariableImpl variable)
Adds a variable. |
protected boolean |
containsState(State state)
Checks if this workflow contains a state. |
protected State |
getDestination(Transition transition)
Returns the destination state of a transition. |
EventImpl |
getEvent(java.lang.String name)
Returns the event for a certain event name. |
State |
getInitialState()
Returns the initial state of this workflow. |
Transition[] |
getLeavingTransitions(State state)
Returns the transitions that leave a state. |
protected StateImpl |
getState(java.lang.String name)
Returns the state with a certain name. |
protected StateImpl[] |
getStates()
Returns the states. |
protected TransitionImpl[] |
getTransitions()
Returns the transitions. |
BooleanVariableImpl |
getVariable(java.lang.String name)
Returns the variable for a certain name. |
java.lang.String[] |
getVariableNames()
Returns the variable names. |
protected BooleanVariableImpl[] |
getVariables()
Returns the variables. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected WorkflowImpl(StateImpl initialState)
initialState - the initial state of the workflow.| Method Detail |
|---|
public State getInitialState()
getInitialState in interface Workflowprotected void addTransition(TransitionImpl transition)
transition - The transition.protected TransitionImpl[] getTransitions()
protected State getDestination(Transition transition)
transition - A transition.
public Transition[] getLeavingTransitions(State state)
getLeavingTransitions in interface Workflowstate - A state.
protected boolean containsState(State state)
state - The state to check.
true if the state is contained, false otherwise.protected StateImpl[] getStates()
protected StateImpl getState(java.lang.String name)
throws WorkflowException
name - The state name.
WorkflowException - when the state does not exist.protected void addEvent(EventImpl event)
event - An event.
public EventImpl getEvent(java.lang.String name)
throws WorkflowException
name - A string.
WorkflowException - when no event with the given name exists.protected void addVariable(BooleanVariableImpl variable)
variable - A variable.
public BooleanVariableImpl getVariable(java.lang.String name)
throws WorkflowException
name - The name of the variable.
WorkflowException - if no variable with the given name exists.protected BooleanVariableImpl[] getVariables()
public java.lang.String[] getVariableNames()
Workflow
getVariableNames in interface WorkflowWorkflow.getVariableNames()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||