|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowListener
The listener interface for receiving Workflow
events.
The class that is interested in processing an Workflow
event
implements this interface, and the object created with that class is
registered with the Workflow
, using the
addWorkflowListener(WorkflowListener)
method.
When a Workflow
event occurs, that object's corresponding method
is invoked.
Method Summary | |
---|---|
void |
workflowAskedForInterruption(WorkflowEvent e)
Invoked when the workflow is asked to stop. |
void |
workflowAskedForSuspension(WorkflowEvent e)
Invoked when the workflow ask for suspension. |
void |
workflowEnded(WorkflowEvent e)
Invoked when the workflow execution ends. |
void |
workflowResumed(WorkflowEvent e)
Invoked when the workflow is resumed by calling the workflow' Workflow.resume() method. |
void |
workflowStarted(WorkflowEvent e)
Invoked when the workflow execution begins. |
void |
workflowSuspended(WorkflowEvent e)
Invoked when the workflow is suspended. |
Method Detail |
---|
void workflowStarted(WorkflowEvent e)
e
- - the eventvoid workflowEnded(WorkflowEvent e)
When the Workflow.interrupt()
method is called, the workflow does
not stop immediately. It first finishes to run the current action and
then stop.
This method is invoked when the workflow effectively stop, contrary to
workflowAskedForInterruption(WorkflowEvent)
, which is invoked
when the Workflow.interrupt()
method is called.
e
- - the eventworkflowAskedForInterruption(WorkflowEvent)
void workflowAskedForInterruption(WorkflowEvent e)
When the Workflow.interrupt()
method is called, the workflow does
not stop immediately. It first finishes to run the current action and
then stop.
This method is invoked when the interrupt()
method is
called, contrary to workflowEnded(WorkflowEvent)
, which is
invoked when the workflow really ends.
e
- - the eventworkflowEnded(WorkflowEvent)
void workflowSuspended(WorkflowEvent e)
When the Workflow.pause()
method is called, the workflow does not
pause immediately. It first finishes to run the current action and then
pause.
This method is invoked when the workflow enters in pause, contrary to
#workflowAskForSuspension(WorkflowEvent)
, which is invoked when
the pause()
method is called.
e
- - the eventworkflowAskedForSuspension(WorkflowEvent)
void workflowAskedForSuspension(WorkflowEvent e)
When the Workflow.pause()
method is called, the workflow does not
pause immediately. It first finishes to run the current action and then
pause.
This method is invoked when the pause()
method is called,
contrary to workflowSuspended(WorkflowEvent)
, which is invoked
when the workflow really enters in pause.
e
- - the eventworkflowSuspended(WorkflowEvent)
void workflowResumed(WorkflowEvent e)
Workflow.resume()
method.
e
- - the event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |