|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lenya.workflow.impl.TransitionImpl
public class TransitionImpl
Implementation of a transition.
Constructor Summary | |
---|---|
protected |
TransitionImpl(StateImpl sourceState,
StateImpl destinationState)
Ctor. |
Method Summary | |
---|---|
void |
addAction(Action action)
Assigns an action to this transition. |
void |
addCondition(Condition condition)
Assigns a condition to this transition. |
boolean |
canFire(Situation situation,
WorkflowInstance instance)
Returns if the transition can fire in a certain situation. |
Action[] |
getActions()
Returns the actions which are assigned tothis transition. |
Condition[] |
getConditions()
Returns the conditions which are assigned to this transition. |
StateImpl |
getDestination()
Returns the destination state of this transition. |
Event |
getEvent()
Returns the event which invokes this transition. |
StateImpl |
getSource()
Returns the source state of this transition. |
boolean |
isSynchronized()
Returns if this transition is synchronized. |
void |
setEvent(Event anEvent)
Sets the event to invoke this transition. |
protected void |
setSynchronized(boolean isSynchronized)
Sets if this transition is synchronized. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TransitionImpl(StateImpl sourceState, StateImpl destinationState)
sourceState
- The source state.destinationState
- The destination state.Method Detail |
---|
public Action[] getActions()
getActions
in interface Transition
public void addAction(Action action)
action
- The action.public Condition[] getConditions()
public void addCondition(Condition condition)
condition
- The condition.public Event getEvent()
getEvent
in interface Transition
public void setEvent(Event anEvent)
anEvent
- An event.public StateImpl getSource()
public StateImpl getDestination()
public boolean canFire(Situation situation, WorkflowInstance instance) throws WorkflowException
canFire
in interface Transition
situation
- The situation.instance
- The workflow instance.
WorkflowException
- when an error occurs.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean isSynchronized()
isSynchronized
in interface Transition
protected void setSynchronized(boolean isSynchronized)
isSynchronized
- A boolean value.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |