|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.flow.process.Transition
| 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. |
protected java.util.Date |
creationDate
The dateTime when the transition was created. |
protected java.util.Date |
endDate
The dateTime when the transition finished. |
protected int |
id
The id. |
protected ITransition |
metaData
The transitions metadata |
protected java.util.Vector |
preStates
The current registered states for firing. |
protected IProcess |
process
The actual running process |
static int |
READY
Constant indicating that the transition is ready to fire, but was not activated yet for execution. |
protected java.util.Date |
startDate
The dateTime when the transition started. |
protected int |
status
The current state of the transition. |
| Constructor Summary | |
Transition(java.util.Iterator prevStates,
ITransition meta)
Creates a new transition instance given the passed metaData information. |
|
| Method Summary | |
java.util.Date |
getCreationDate()
Returns the creation date/time of this transition. |
java.lang.String |
getDescription()
Return a description (opional) |
java.util.Date |
getEndDate()
Returns the end date/time of this transition (if available). |
int |
getID()
Return the ID number of the object. |
ITransition |
getMetadata()
|
java.lang.String |
getName()
Return a name or string representation of the object. |
java.util.Iterator |
getPreStates()
Return the states that have registered to fire the transition so far. |
IProcess |
getProcess()
|
java.util.Date |
getStartDate()
Returns the start date/time of this transition. |
int |
getStatus()
Get the current status. |
void |
prepareRun(IWorkflowContext workflow)
This method checks if the transition can fire. |
void |
runTransition(IWorkflowContext workflow)
|
| Methods inherited from class java.lang.Object |
|
| Methods inherited from interface org.jwarp.flow.process.ITransition |
init, run |
| Field Detail |
public static final int CREATED
public static final int BLOCKED
public static final int READY
public static final int ACTIVE
public static final int COMPLETED
protected int status
protected ITransition metaData
protected java.util.Vector preStates
protected java.util.Date endDate
protected java.util.Date startDate
protected java.util.Date creationDate
protected int id
protected IProcess process
| Constructor Detail |
public Transition(java.util.Iterator prevStates,
ITransition meta)
| Method Detail |
public int getStatus()
ITransitiongetStatus in interface ITransitionorg.jwarp.flow.process.ITransitionpublic java.util.Date getStartDate()
ITransitiongetStartDate in interface ITransitionorg.jwarp.flow.process.ITransitionpublic java.util.Date getEndDate()
ITransitiongetEndDate in interface ITransitionorg.jwarp.flow.process.ITransitionpublic java.util.Date getCreationDate()
ITransitiongetCreationDate in interface ITransitionorg.jwarp.flow.process.ITransitionpublic java.util.Iterator getPreStates()
public void prepareRun(IWorkflowContext workflow)
throws TransitionException,
TransitionInitException
public void runTransition(IWorkflowContext workflow)
throws TransitionException,
TransitionInitException
public ITransition getMetadata()
public IProcess getProcess()
public java.lang.String getDescription()
IWorkflowObjectgetDescription in interface IWorkflowObjectorg.jwarp.flow.IWorkflowObjectpublic java.lang.String getName()
IWorkflowObjectgetName in interface IWorkflowObjectorg.jwarp.flow.IWorkflowObjectpublic int getID()
IWorkflowObjectgetID in interface IWorkflowObjectorg.jwarp.flow.IWorkflowObject
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||