Class CommonWorkflowBpmnModelling


  • public final class CommonWorkflowBpmnModelling
    extends Object
    Internal helper that provides various algorithms for modeling common scenarios in a BPMN model created from a formcycle workflow. Intended as helper methods for other specific modelers. Internal for now, some parts of these might be exposed in the future (via the IWorkflowBpmnModelContext interface).
    Since:
    8.4.0
    • Method Detail

      • modelEmptyNode

        public static void modelEmptyNode​(IModelWorkflowNodeParams<?> params,
                                          IWorkflowBpmnModelContext context)
        Models an empty node that does nothing upon execution. It has a size of 0x0 and an in and out port at 0.
        Parameters:
        params - The parameters for the modeling process, as provided by the workflow engine.
        context - The current BPMN model context.
      • modelPassthroughToChildAt

        public static void modelPassthroughToChildAt​(IModelWorkflowNodeParams<?> params,
                                                     IWorkflowBpmnModelContext context,
                                                     int childIndex)
        Models a node that simply passes through to one of its child nodes upon execution, without doing anything else.

        Calls modelNode on the workflow node's child at the given index, then configures the partBuilder to match the child node's BPMN model.

        If the child node is missing, behaves as if modelEmpty were used.

        Parameters:
        params - The parameters for the modeling process, as provided by the workflow engine.
        context - The current BPMN model context.
        childIndex - The index of the child node to model.
      • modelProcessingChainTerminationRequest

        public static void modelProcessingChainTerminationRequest​(IModelWorkflowNodeParams<?> params,
                                                                  IWorkflowBpmnModelContext context)
        Models a request to terminate the processing chain, as if a return statement had been issued.
        Parameters:
        params - The parameters for the modeling process, as provided by the workflow engine.
        context - The current BPMN model context.