|
||||||||
| 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(java.lang.String _name,
java.lang.String _initialState)
Creates a new instance of WorkflowImpl. |
| Method Summary | |
|---|---|
protected void |
addEvent(java.lang.String event)
Adds an event. |
protected void |
addTransition(TransitionImpl transition)
Adds a transition. |
protected void |
addVariable(BooleanVariableImpl variable)
Adds a variable. |
protected boolean |
containsState(java.lang.String state)
Checks if this workflow contains a state. |
java.lang.String[] |
getEvents()
|
java.lang.String |
getInitialState()
Returns the initial state of this workflow. |
boolean |
getInitialValue(java.lang.String variableName)
|
org.apache.lenya.workflow.Transition[] |
getLeavingTransitions(java.lang.String state)
|
java.lang.String |
getName()
|
java.lang.String[] |
getStates()
|
protected TransitionImpl[] |
getTransitions()
Returns the transitions. |
BooleanVariableImpl |
getVariable(java.lang.String _name)
Returns the variable for a certain name. |
java.lang.String[] |
getVariableNames()
|
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(java.lang.String _name,
java.lang.String _initialState)
_name - The name._initialState - the initial state of the workflow.| Method Detail |
|---|
public java.lang.String getInitialState()
getInitialState in interface org.apache.lenya.workflow.Workflowprotected void addTransition(TransitionImpl transition)
transition - The transition.protected TransitionImpl[] getTransitions()
public org.apache.lenya.workflow.Transition[] getLeavingTransitions(java.lang.String state)
throws org.apache.lenya.workflow.WorkflowException
getLeavingTransitions in interface org.apache.lenya.workflow.Workfloworg.apache.lenya.workflow.WorkflowExceptionWorkflow.getLeavingTransitions(java.lang.String)protected boolean containsState(java.lang.String state)
state - The state to check.
true if the state is contained, false
otherwise.public java.lang.String[] getStates()
getStates in interface org.apache.lenya.workflow.Workflowprotected void addEvent(java.lang.String event)
event - An event.protected void addVariable(BooleanVariableImpl variable)
variable - A variable.
public BooleanVariableImpl getVariable(java.lang.String _name)
throws org.apache.lenya.workflow.WorkflowException
_name - The name of the variable.
org.apache.lenya.workflow.WorkflowException - if no variable with the given name exists.protected BooleanVariableImpl[] getVariables()
public java.lang.String[] getVariableNames()
getVariableNames in interface org.apache.lenya.workflow.WorkflowWorkflow.getVariableNames()public java.lang.String getName()
getName in interface org.apache.lenya.workflow.WorkflowWorkflow.getName()
public boolean getInitialValue(java.lang.String variableName)
throws org.apache.lenya.workflow.WorkflowException
getInitialValue in interface org.apache.lenya.workflow.Workfloworg.apache.lenya.workflow.WorkflowExceptionWorkflow.getInitialValue(java.lang.String)public java.lang.String[] getEvents()
getEvents in interface org.apache.lenya.workflow.WorkflowWorkflow.getEvents()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||