public interface WorkflowEnginePlugin
| Modifier and Type | Method and Description |
|---|---|
Object |
getBean(String name)
Returns the bean with the given name as provided by the plugin.
|
GraphRepository |
getGraphRepository()
Returns the repository of graphs provided by the plugin.
|
boolean |
isStarted()
Returns whether the engine has successfully started.
|
void |
onHumanTaskCancelled(GraphWorkItem workItem)
Notifies all
HumanTaskEventListener's provided by the plugin that a human task work item was aborted. |
void |
onHumanTaskCancelled(WorkflowInstance workflowInstance,
WorkItem workItem)
Notifies all
HumanTaskEventListener's provided by the plugin that a human task work item was aborted. |
void |
onHumanTaskCompleted(GraphWorkItem workItem)
Notifies all
HumanTaskEventListener's provided by the plugin that a human task work item was completed. |
void |
onHumanTaskCreated(GraphWorkItem workItem)
Notifies all
HumanTaskEventListener's provided by the plugin that a human task work item was created. |
void |
onWorkflowInstanceAborted(GraphInstance instance)
Notifies all
WorkflowInstanceEventListener's provided by the plugin that a workflow instance was aborted. |
void |
onWorkflowInstanceCompleted(GraphInstance instance)
Notifies all
WorkflowInstanceEventListener's provided by the plugin that a workflow instance execution completed. |
void |
onWorkflowInstanceCreated(GraphInstance instance)
Notifies all
WorkflowInstanceEventListener's provided by the plugin that a graph instance was created. |
void |
reloadWorkflowDefinitions()
Reloads all workflow definitions in the plugin's graph repository.
|
void |
start()
Lifecycle method that is called in order to give the plugin a chance for custom initialization.
|
void |
stop()
Lifecycle method that is called in order to give the plugin a chance for a clean shut-down.
|
void start()
Is always called before any other method (except isStarted().
Will not throw an Exception if an error occurs. Use isStarted() after a call to this
method in order to verify that the plug-in started successfully.
void stop()
It is guaranteed that none of the other methods (except start() for a restart or
isStarted()) is called after the plugin is stopped.
boolean isStarted()
GraphRepository getGraphRepository()
void reloadWorkflowDefinitions()
void onWorkflowInstanceCreated(GraphInstance instance)
WorkflowInstanceEventListener's provided by the plugin that a graph instance was created.void onWorkflowInstanceCompleted(GraphInstance instance)
WorkflowInstanceEventListener's provided by the plugin that a workflow instance execution completed.void onWorkflowInstanceAborted(GraphInstance instance)
WorkflowInstanceEventListener's provided by the plugin that a workflow instance was aborted.void onHumanTaskCreated(GraphWorkItem workItem)
HumanTaskEventListener's provided by the plugin that a human task work item was created.void onHumanTaskCompleted(GraphWorkItem workItem)
HumanTaskEventListener's provided by the plugin that a human task work item was completed.void onHumanTaskCancelled(GraphWorkItem workItem)
HumanTaskEventListener's provided by the plugin that a human task work item was aborted.void onHumanTaskCancelled(WorkflowInstance workflowInstance, WorkItem workItem)
HumanTaskEventListener's provided by the plugin that a human task work item was aborted.
This method is called rather than onHumanTaskCancelled(GraphWorkItem), if the associates workflow
instance's workflow definition is not provided by the plugin anymore.
Copyright © 2018. All rights reserved.