|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.flow.event.listener.JobAwareFlowEventListener
public class JobAwareFlowEventListener
The JobAwareFlowEventListener provides a
FlowEventListener implementation that brokers the life-cycle
callbacks that it receives through to locally registered
FlowEventJob instances.
Each FlowEventJob represents some sort of executable platform
service
Whether not a particular FlowEventJob need be called at a given
life-cycle point will depend on the existence of Trigger bound to
either before or after the flow or flow element
| Constructor Summary | |
|---|---|
JobAwareFlowEventListener(Map<String,FlowEventJob> flowEventJobs,
TriggerDao triggerDao)
Constructor |
|
| Method Summary | |
|---|---|
void |
addDynamicTrigger(Trigger trigger)
Registers a dynamic trigger Dynamic triggers may be created and deleted at runtime. |
void |
addStaticTrigger(Trigger trigger)
Registers a static triggers Static Triggers are usually set through configuration, and cannot be added to or deleted at runtime |
void |
addStaticTriggers(List<Trigger> staticTriggers)
Registers a List of static triggers Static Triggers are usually set through configuration, and cannot be added to or deleted at runtime |
void |
afterFlow(String moduleName,
String flowName,
Event event)
Callback method to be invoked subsequent to Flow execution |
void |
afterFlowElement(String moduleName,
String flowName,
FlowElement flowElement,
Event event)
Callback method to be called subsequent to FlowElement execution |
void |
beforeFlow(String moduleName,
String flowName,
Event event)
Callback method to be invoked prior to Flow execution |
void |
beforeFlowElement(String moduleName,
String flowName,
FlowElement flowElement,
Event event)
Callback method to be invoked prior to FlowElement execution |
void |
deleteDynamicTrigger(Long triggerId)
Deletes a dynamic trigger, specified by trigger id. |
Map<String,FlowEventJob> |
getRegisteredJobs()
Returns a safe Map of all registered FlowEventJobs, keyed by jobName |
List<Trigger> |
getTriggers(String moduleName,
String flowName,
TriggerRelationship relationship,
String flowElementName)
Returns a safe List of all the triggers associated with a particular point in a particular flow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobAwareFlowEventListener(Map<String,FlowEventJob> flowEventJobs,
TriggerDao triggerDao)
flowEventJobs - - The list of flow event jobstriggerDao - - The DAO for the trigger| Method Detail |
|---|
public void addStaticTriggers(List<Trigger> staticTriggers)
staticTriggers - - List of Triggerspublic void addStaticTrigger(Trigger trigger)
trigger - - The static Trigger to addpublic void addDynamicTrigger(Trigger trigger)
trigger - - The dynamic TRigger to add
public void beforeFlow(String moduleName,
String flowName,
Event event)
FlowEventListenerFlow execution
beforeFlow in interface FlowEventListenermoduleName - - name of the moduleflowName - - name of the flowevent - - event with which flow is to be invoked
public void afterFlow(String moduleName,
String flowName,
Event event)
FlowEventListenerFlow execution
afterFlow in interface FlowEventListenermoduleName - - name of the moduleflowName - - name of the flowevent - - event with which flow was invoked
public void beforeFlowElement(String moduleName,
String flowName,
FlowElement flowElement,
Event event)
FlowEventListenerFlowElement execution
beforeFlowElement in interface FlowEventListenermoduleName - - name of the moduleflowName - - name of the flowflowElement - - FlowElement about to be invokedevent - - event with which flow element is to be invoked
public void afterFlowElement(String moduleName,
String flowName,
FlowElement flowElement,
Event event)
FlowEventListenerFlowElement execution
afterFlowElement in interface FlowEventListenermoduleName - - name of the moduleflowName - - name of the flowflowElement - - FlowElement which was invokedevent - - event with which flow element was invoked
public List<Trigger> getTriggers(String moduleName,
String flowName,
TriggerRelationship relationship,
String flowElementName)
moduleName - - THe name of the moduleflowName - - The name of the flowrelationship - - The Trigger relationship (before or after)flowElementName - - The flow element name
public void deleteDynamicTrigger(Long triggerId)
triggerId - - The dynamic Trigger to deregisterpublic Map<String,FlowEventJob> getRegisteredJobs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||