org.jwarp.flow.process
Interface ITransition

All Superinterfaces:
IWorkflowObject
All Known Implementing Classes:
Transition

public interface ITransition
extends IWorkflowObject


Field Summary
static int ACTIVE
          Constant indicating that the transitions is firing, that means executing.
static int BLOCKED
          Constant indicating that this transition can not fire.
static int COMPLETED
          Constant indicating that the transition has fired successfully.
static int CREATED
          Constant indicating that this transition is not yet initialised.
static int READY
          Constant indicating that the transition is ready to fire, but was not activated yet for execution.
 
Method Summary
 java.util.Date getCreationDate()
          Returns the creation date/time of this transition.
 java.util.Date getEndDate()
          Returns the end date/time of this transition (if available).
 java.util.Date getStartDate()
          Returns the start date/time of this transition.
 int getStatus()
          Get the current status.
 void init(IWorkflowContext workflow, IState[] states)
          Return the states that resultet from executon of this transition.
 void run()
          Executes the transition
 
Methods inherited from interface org.jwarp.flow.IWorkflowObject
getDescription, getID, getName
 

Field Detail

CREATED

public static final int CREATED
Constant indicating that this transition is not yet initialised.

BLOCKED

public static final int BLOCKED
Constant indicating that this transition can not fire.

READY

public static final int READY
Constant indicating that the transition is ready to fire, but was not activated yet for execution.

ACTIVE

public static final int ACTIVE
Constant indicating that the transitions is firing, that means executing.

COMPLETED

public static final int COMPLETED
Constant indicating that the transition has fired successfully.
Method Detail

init

public void init(IWorkflowContext workflow,
                 IState[] states)
Return the states that resultet from executon of this transition. Tzhis is only available if the transition finished executing.
Returns:
The next state instance or null

run

public void run()
         throws TransitionException,
                TransitionInitException
Executes the transition
Throws:
TransitionException -  
TransitionInitException -  

getStatus

public int getStatus()
Get the current status.
Returns:
the current status

getStartDate

public java.util.Date getStartDate()
Returns the start date/time of this transition.
Returns:
start date

getEndDate

public java.util.Date getEndDate()
Returns the end date/time of this transition (if available).
Returns:
end date

getCreationDate

public java.util.Date getCreationDate()
Returns the creation date/time of this transition.
Returns:
creation date

©   O R C A   S y s t e m s