|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.jbbres.lib.actions.workflow.WorkflowEvent
public class WorkflowEvent
A semantic event which indicates that a Workflow
event related to the
workflow execution occurred.
This event is generated by a Workflow
during one of the stage of
the execution.
The event is passed to every WorkflowListener
object that registered
to receive such events using the workflow'
addWorkflowListener(WorkflowListener)
method.
The object that implements the WorkflowListener
interface gets
this WorkflowEvent
when the event occurs.
Field Summary | |
---|---|
static int |
WORKFLOW_FAILED
The workflow has been executed but failed due to an error. |
static int |
WORKFLOW_IN_PROGRESS
The workflow is currently in execution. |
static int |
WORKFLOW_STOPPED
The workflow has been executed but stopped due to a request of the user. |
static int |
WORKFLOW_SUCCEED
The workflow has been executed and ended on a success. |
static int |
WORKFLOW_SUSPENDED
The workflow is in execution but suspended for the time being. |
Constructor Summary | |
---|---|
WorkflowEvent(Workflow source)
Instantiates a new workflow event. |
|
WorkflowEvent(Workflow source,
int workflowStatus)
Instantiates a new workflow event. |
|
WorkflowEvent(Workflow source,
int workflowStatus,
java.lang.Object workflowResult)
Instantiates a new workflow event. |
Method Summary | |
---|---|
Workflow |
getSourceWorkflow()
Returns the workflow that is the source of the event. |
java.lang.Object |
getWorkflowResult()
Returns the object that has been generated as the result of the last action executed. |
int |
getWorkflowStatus()
Returns status at the time the event occured. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int WORKFLOW_SUCCEED
public static final int WORKFLOW_IN_PROGRESS
public static final int WORKFLOW_SUSPENDED
public static final int WORKFLOW_FAILED
public static final int WORKFLOW_STOPPED
Constructor Detail |
---|
public WorkflowEvent(Workflow source)
source
- - the workflow source of the eventpublic WorkflowEvent(Workflow source, int workflowStatus)
source
- - the workflow source of the eventworkflowStatus
- - the status of the workflow at the time the event occurspublic WorkflowEvent(Workflow source, int workflowStatus, java.lang.Object workflowResult)
source
- - the workflow source of the eventworkflowStatus
- - the status of the workflow at the time the event occursworkflowResult
- - the result of the last action executed by the workflowMethod Detail |
---|
public Workflow getSourceWorkflow()
public int getWorkflowStatus()
public java.lang.Object getWorkflowResult()
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |