Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.lenya.workflow
Interface Transition  view Transition download Transition.java


public interface Transition

A transition describes the switching of a workflow instance from one state to another. A transition has

Additionally, a transition can be marked as synchronized.


Method Summary
 boolean canFire(Situation situation, WorkflowInstance instance)
          Returns if the transition can fire in a certain situation.
 Action[] getActions()
          Returns the actions of this transition.
 Event getEvent()
          Returns the event of this transition.
 boolean isSynchronized()
          Returns if this transition is synchronized.
 

Method Detail

getEvent

public Event getEvent()
Returns the event of this transition.


getActions

public Action[] getActions()
Returns the actions of this transition.


canFire

public boolean canFire(Situation situation,
                       WorkflowInstance instance)
                throws WorkflowException
Returns if the transition can fire in a certain situation.


isSynchronized

public boolean isSynchronized()
Returns if this transition is synchronized.