org.embl.ebi.escience.scufl.enactor.implementation
Class WorkflowEventDispatcher

java.lang.Object
  extended by org.embl.ebi.escience.scufl.enactor.implementation.WorkflowEventDispatcher

public class WorkflowEventDispatcher
extends java.lang.Object

The dispatcher class for workflow events, create one of these per enactor instance and use it to push workflow life cycle events out to interested parties.

Author:
Tom Oinn

Field Summary
static WorkflowEventDispatcher DISPATCHER
           
 
Constructor Summary
WorkflowEventDispatcher(boolean loadFromSPI)
          Create a new workflow event dispatcher.
 
Method Summary
 void addListener(WorkflowEventListener listener)
           
 void fireCollectionConstructed(CollectionConstructionEvent e)
          Deprecated. 
 void fireEvent(WorkflowInstanceEvent event)
          Fire an event.
 void fireIterationCompleted(IterationCompletionEvent e)
          Deprecated. 
 void fireNestedWorkflowCompleted(NestedWorkflowCompletionEvent e)
          Deprecated. 
 void fireNestedWorkflowCreated(NestedWorkflowCreationEvent e)
          Deprecated. 
 void fireNestedWorkflowFailed(NestedWorkflowFailureEvent e)
          Deprecated. 
 void fireProcessCompleted(ProcessCompletionEvent e)
          Deprecated. 
 void fireProcessFailed(ProcessFailureEvent e)
          Deprecated. 
 void fireUserChangedData(UserChangedDataEvent e)
          Deprecated. 
 void fireWorkflowCompleted(WorkflowCompletionEvent e)
          Deprecated. 
 void fireWorkflowCreated(WorkflowCreationEvent e)
          Deprecated. 
 void fireWorkflowFailed(WorkflowFailureEvent e)
          Deprecated. 
 void removeListener(WorkflowEventListener listener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPATCHER

public static WorkflowEventDispatcher DISPATCHER
Constructor Detail

WorkflowEventDispatcher

public WorkflowEventDispatcher(boolean loadFromSPI)
Create a new workflow event dispatcher. If the boolean loadFromSPI is true then this will scan for implementations of the WorkflowEventListener interface using the commons discovery package, instantiate any found and add them as listeners to this dispatcher. If false then this scan is not performed and an empty dispatcher is created.

Method Detail

fireNestedWorkflowCreated

@Deprecated
public void fireNestedWorkflowCreated(NestedWorkflowCreationEvent e)
Deprecated. 


fireNestedWorkflowFailed

@Deprecated
public void fireNestedWorkflowFailed(NestedWorkflowFailureEvent e)
Deprecated. 


fireNestedWorkflowCompleted

@Deprecated
public void fireNestedWorkflowCompleted(NestedWorkflowCompletionEvent e)
Deprecated. 


fireWorkflowCreated

@Deprecated
public void fireWorkflowCreated(WorkflowCreationEvent e)
Deprecated. 


fireWorkflowFailed

@Deprecated
public void fireWorkflowFailed(WorkflowFailureEvent e)
Deprecated. 


fireWorkflowCompleted

@Deprecated
public void fireWorkflowCompleted(WorkflowCompletionEvent e)
Deprecated. 


fireProcessCompleted

@Deprecated
public void fireProcessCompleted(ProcessCompletionEvent e)
Deprecated. 


fireUserChangedData

@Deprecated
public void fireUserChangedData(UserChangedDataEvent e)
Deprecated. 


fireIterationCompleted

@Deprecated
public void fireIterationCompleted(IterationCompletionEvent e)
Deprecated. 


fireProcessFailed

@Deprecated
public void fireProcessFailed(ProcessFailureEvent e)
Deprecated. 


fireCollectionConstructed

@Deprecated
public void fireCollectionConstructed(CollectionConstructionEvent e)
Deprecated. 


fireEvent

public void fireEvent(WorkflowInstanceEvent event)
Fire an event.

Use this function instead of the numerous fireCollectionConstructed() etc.

Parameters:
event - The event to fire

addListener

public void addListener(WorkflowEventListener listener)

removeListener

public void removeListener(WorkflowEventListener listener)