|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.scufl.enactor.WorkflowEventAdapter
public class WorkflowEventAdapter
An (abstract) adapter around the workflow event listener interface allowing for convenient implementation of a subset of the available event handlers.
| Constructor Summary | |
|---|---|
WorkflowEventAdapter()
|
|
| Method Summary | |
|---|---|
void |
collectionConstructed(CollectionConstructionEvent e)
Called when a data item is wrapped up inside a default collection prior to being passed to a service expecting a higher cardinality version of the same input type |
void |
dataChanged(UserChangedDataEvent e)
Called when a user changes intemediate data (output). |
void |
nestedWorkflowCompleted(NestedWorkflowCompletionEvent e)
Called when a nested workflow instance has completed its invocation successfully. |
void |
nestedWorkflowCreated(NestedWorkflowCreationEvent e)
Called when a nested workflow instance is created and about to be invoked by the enactor instance. |
void |
nestedWorkflowFailed(NestedWorkflowFailureEvent e)
Called when a nested workflow fails. |
void |
processCompleted(ProcessCompletionEvent e)
Called when an individual processor within a workflow completes its invocation successfuly. |
void |
processCompletedWithIteration(IterationCompletionEvent e)
Called when the iteration stage of the processor is completed the event carries details of the LSIDs of the component results which are now integrated into the result of the process |
void |
processFailed(ProcessFailureEvent e)
Called when a process fails - typically this will be followed by a WorkflowFailed event. |
void |
workflowCompleted(WorkflowCompletionEvent e)
Called when a previously scheduled workflow completes successfuly. |
void |
workflowCreated(WorkflowCreationEvent e)
Called when a workflow instance has been submitted along with associated input data to an enactor instance. |
void |
workflowDestroyed(WorkflowDestroyedEvent event)
This event is sent after workflowInstance.destroy() has been called. |
void |
workflowFailed(WorkflowFailureEvent e)
Called when a workflow instance fails for some reason |
void |
workflowToBeDestroyed(WorkflowToBeDestroyedEvent event)
Called right before workflowInstance.destroy() is to be called. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkflowEventAdapter()
| Method Detail |
|---|
public void workflowCreated(WorkflowCreationEvent e)
workflowCreated in interface WorkflowEventListenerpublic void workflowFailed(WorkflowFailureEvent e)
WorkflowEventListener
workflowFailed in interface WorkflowEventListenerpublic void workflowCompleted(WorkflowCompletionEvent e)
WorkflowEventListener
workflowCompleted in interface WorkflowEventListenerpublic void processCompleted(ProcessCompletionEvent e)
WorkflowEventListener
processCompleted in interface WorkflowEventListenerpublic void processCompletedWithIteration(IterationCompletionEvent e)
WorkflowEventListener
processCompletedWithIteration in interface WorkflowEventListenerpublic void processFailed(ProcessFailureEvent e)
WorkflowEventListener
processFailed in interface WorkflowEventListenerpublic void collectionConstructed(CollectionConstructionEvent e)
WorkflowEventListener
collectionConstructed in interface WorkflowEventListenerpublic void dataChanged(UserChangedDataEvent e)
WorkflowEventListener
dataChanged in interface WorkflowEventListenerpublic void nestedWorkflowCompleted(NestedWorkflowCompletionEvent e)
WorkflowEventListener
nestedWorkflowCompleted in interface WorkflowEventListenerpublic void nestedWorkflowCreated(NestedWorkflowCreationEvent e)
WorkflowEventListener
nestedWorkflowCreated in interface WorkflowEventListenerpublic void nestedWorkflowFailed(NestedWorkflowFailureEvent e)
WorkflowEventListener
nestedWorkflowFailed in interface WorkflowEventListenerpublic void workflowDestroyed(WorkflowDestroyedEvent event)
WorkflowEventListenerThis is the last message you receive about this workflow instance, which by now should not be accessed anymore.
event.getWorkflowInstance() on this event will therefore always return null, but you can access what would have been the result of workflowInstance.getID() by calling event.getWorkflowInstanceID().
If you would like to access the instance before it has been destroyed, do so from workflowToBeDestroyed(WorkflowToBeDestroyedEvent)
workflowDestroyed in interface WorkflowEventListenerpublic void workflowToBeDestroyed(WorkflowToBeDestroyedEvent event)
WorkflowEventListenerThis is your last chance to access the workflow instance before it becomes unusable. workflowDestroyed(WorkflowDestroyedEvent) will be called after destroy() has been invoked, but at that point it will be too late to access the instance.
Note: This is the last chance to access workflowInstance before it is destroyed. If you have your own references to the instance or any of the data of workflowInstance (such as the input map), this is the time to remove such references.
workflowToBeDestroyed in interface WorkflowEventListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||