Implementing Workflow Interactions
Workflow interactions principle
From a workflow instance you can act on one or several other workflow instances: this is a workflow interaction.
The workflow interaction calls:
A source workflow: workflow from which the transition is triggered.
A target workflow: workflow called from the source workflow.
Example: in the framework of a workflow on action plans, when a workflow is triggered, actions owned by the action plan must be triggered.
You can configure workflow interactions on:
a workflow action
a workflow condition
Configuration of a workflow interaction is carried out in two stages. You must use and configure:
a workflow action macro
a workflow interaction macro
*Configuration of macros delivered as standard is explained in the HOPEX interface, in the tooltip describing the macro.
Workflow interaction macros
Workflow action macros call workflow interaction macros, which indicate how to access target workflow instances from the source workflow instance.
to create a workflow interaction macro:
*Implement the following method:
String getWorkflowInstanceTarget
)
where:
Context is the workflow interaction execution context. This context uses the WorkflowContextAction interface.
mgcollWorkflowInstanceTarget is the collection of target workflow instances. It is empty: you must fill it.
Workflow interaction examples