Interface IWorkflowTaskBpmnModeler
-
public interface IWorkflowTaskBpmnModeler
Interface for modelingworkflow tasks
in a BPMN 2.0 diagram. Used to create a BPMN diagram of the entire workflow.The modeler does not need to have any state and can be immutable. The modeler must be thread-safe.
- Since:
- 8.4.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
modelTask(IModelWorkflowTaskParams params, IWorkflowBpmnModelContext context)
Models aWorkflowTask
in the BPMN diagram.
-
-
-
Method Detail
-
modelTask
void modelTask(IModelWorkflowTaskParams params, IWorkflowBpmnModelContext context)
Models aWorkflowTask
in the BPMN diagram. This method is called once for eachtask
of aprocess
in the workflow. Implementations should usually callcontext.modelTrigger(trigger)
on the task'strigger
andcontext.modelNode(node)
on the task'sroot node
.The responsibility of each modeler is to access the provided
params.partBuilder()
and add the appropriate data to that builder. That data then gets used to create aIStructuredBpmnModelPart
for thetask
, see the class-level documentation ofIStructuredBpmnModelPart
for more info.When modelling a workflow task as BPMN, the usual approach is to create a nested tree of
alignment items
, making use of thelayouter
. This tree then getsresolved
to a flat map. Finally, the various method onIFlattenedAlignmentItemMap
can be used to create theBPMN shapes
,BPMN edges
andsequence flows
.- Parameters:
params
- The parameters for the modeler, containing theWorkflowTask
to model, as well as the part builder to fill with data.context
- The context for creating the BPMN diagram, its lifecycle starts when the conversion (of the workflow to a BPMN diagram) starts and ends when the conversion ends. The context lets you access various helper methods such as thelayouter()
orcolorizer
, and also provides access to all global data such as alltriggers
andnodes
in the workflow.
-
-