| 
||||||||
| 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 Transitionpublic void addAction(Action action)
action - The action.public Condition[] getConditions()
public void addCondition(Condition condition)
condition - The condition.public Event getEvent()
getEvent in interface Transitionpublic 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 Transitionsituation - The situation.instance - The workflow instance.
WorkflowException - when an error occurs.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public boolean isSynchronized()
isSynchronized in interface Transitionprotected void setSynchronized(boolean isSynchronized)
isSynchronized - A boolean value.
  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||