@Component(value="plugin") @Transactional public class WorkflowEnginePluginImpl extends Object implements WorkflowEnginePlugin
| Constructor and Description |
|---|
WorkflowEnginePluginImpl() |
| 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.
|
public static final String BEAN
public void start()
WorkflowEnginePlugin
Is always called before any other method (except WorkflowEnginePlugin.isStarted().
Will not throw an Exception if an error occurs. Use WorkflowEnginePlugin.isStarted() after a call to this
method in order to verify that the plug-in started successfully.
start in interface WorkflowEnginePluginpublic void stop()
WorkflowEnginePlugin
It is guaranteed that none of the other methods (except WorkflowEnginePlugin.start() for a restart or
WorkflowEnginePlugin.isStarted()) is called after the plugin is stopped.
stop in interface WorkflowEnginePluginpublic boolean isStarted()
WorkflowEnginePluginisStarted in interface WorkflowEnginePluginpublic GraphRepository getGraphRepository()
WorkflowEnginePlugingetGraphRepository in interface WorkflowEnginePluginpublic Object getBean(String name)
WorkflowEnginePlugingetBean in interface WorkflowEnginePluginpublic void reloadWorkflowDefinitions()
WorkflowEnginePluginreloadWorkflowDefinitions in interface WorkflowEnginePluginpublic void onWorkflowInstanceCreated(GraphInstance instance)
WorkflowEnginePluginWorkflowInstanceEventListener's provided by the plugin that a graph instance was created.onWorkflowInstanceCreated in interface WorkflowEnginePluginpublic void onWorkflowInstanceCompleted(GraphInstance instance)
WorkflowEnginePluginWorkflowInstanceEventListener's provided by the plugin that a workflow instance execution completed.onWorkflowInstanceCompleted in interface WorkflowEnginePluginpublic void onWorkflowInstanceAborted(GraphInstance instance)
WorkflowEnginePluginWorkflowInstanceEventListener's provided by the plugin that a workflow instance was aborted.onWorkflowInstanceAborted in interface WorkflowEnginePluginpublic void onHumanTaskCreated(GraphWorkItem workItem)
WorkflowEnginePluginHumanTaskEventListener's provided by the plugin that a human task work item was created.onHumanTaskCreated in interface WorkflowEnginePluginpublic void onHumanTaskCompleted(GraphWorkItem workItem)
WorkflowEnginePluginHumanTaskEventListener's provided by the plugin that a human task work item was completed.onHumanTaskCompleted in interface WorkflowEnginePluginpublic void onHumanTaskCancelled(GraphWorkItem workItem)
WorkflowEnginePluginHumanTaskEventListener's provided by the plugin that a human task work item was aborted.onHumanTaskCancelled in interface WorkflowEnginePluginpublic void onHumanTaskCancelled(WorkflowInstance workflowInstance, WorkItem workItem)
WorkflowEnginePluginHumanTaskEventListener's provided by the plugin that a human task work item was aborted.
This method is called rather than WorkflowEnginePlugin.onHumanTaskCancelled(GraphWorkItem), if the associates workflow
instance's workflow definition is not provided by the plugin anymore.
onHumanTaskCancelled in interface WorkflowEnginePluginCopyright © 2018. All rights reserved.