Class ABinarySelectionBpmnModeler<Model>

    • Constructor Detail

      • ABinarySelectionBpmnModeler

        public ABinarySelectionBpmnModeler()
    • Method Detail

      • getAlternateChildIndex

        protected int getAlternateChildIndex()
        Gets the 0-based index of the child representing the alternate (else) part.
        Returns:
        0-based index of the alternate child.
      • getAlternateLabel

        protected String getAlternateLabel​(IModelWorkflowNodeParams<Model> params,
                                           IWorkflowBpmnModelContext context)
        Gets the label for the alternate part, which is displayed next to the outgoing sequence flow of the exclusive gateway.

        When this returns a blank string, defaults to a default localized label that may or may not be appropriate for the specific circumstances of the workflow node being modelled.

        Note regarding the naming convention for gateways. Label a data-based exclusive gateway with a question.

        • Invoice correct?
        • Trust level of user?
        Label the outgoing sequence flows with the conditions they are executed under. Formulate the conditions as answers to the question posed at the gateway.
        • Yes
        • No
        • Untrusted
        • Basic
        • Secure
        Parameters:
        params - The parameters for the workflow node to model, as provided by the workflow engine.
        context - The context for the BPMN modelling process, as provided by the workflow engine.
        Returns:
        The label for the alternate part.
      • getConditionDetails

        protected String getConditionDetails​(IModelWorkflowNodeParams<Model> params,
                                             IWorkflowBpmnModelContext context)
        Gets the detailed description of the condition that is evaluated to determine which branch to take. The description is placed within the text annotation of the diverging exclusive gateway. May return empty if no details are needed.
        Parameters:
        params - The parameters for the workflow node to model, as provided by the workflow engine.
        context - The context for the BPMN modelling process, as provided by the workflow engine.
        Returns:
        The details description of the condition, may be empty if no condition is specified.
      • getConditionName

        protected String getConditionName​(IModelWorkflowNodeParams<Model> params,
                                          IWorkflowBpmnModelContext context)
        Gets the name of the condition, uses as the name of the diverging exclusive gateway.

        When this returns a blank string, defaults to a default localized name that may or may not be appropriate for the specific circumstances of the workflow node being modelled.

        Note regarding the naming convention for gateways. Label a data-based exclusive gateway with a question.

        • Invoice correct?
        • Trust level of user?
        Label the outgoing sequence flows with the conditions they are executed under. Formulate the conditions as answers to the question posed at the gateway.
        • Yes
        • No
        • Untrusted
        • Basic
        • Secure
        Parameters:
        params - The parameters for the workflow node to model, as provided by the workflow engine.
        context - The context for the BPMN modelling process, as provided by the workflow engine.
        Returns:
        The details description of the condition, may be empty if no condition is specified.
      • getConsequentChildIndex

        protected int getConsequentChildIndex()
        Gets the 0-based index of the child representing the consequent (if) part.
        Returns:
        0-based index of the consequent child.
      • getConsequentLabel

        protected String getConsequentLabel​(IModelWorkflowNodeParams<Model> params,
                                            IWorkflowBpmnModelContext context)
        Gets the label for the consequent part, which is displayed next to the outgoing sequence flow of the exclusive gateway.

        When this returns a blank string, defaults to a default localized label that may or may not be appropriate for the specific circumstances of the workflow node being modelled.

        Note regarding the naming convention for gateways. Label a data-based exclusive gateway with a question.

        • Invoice correct?
        • Trust level of user?
        Label the outgoing sequence flows with the conditions they are executed under. Formulate the conditions as answers to the question posed at the gateway.
        • Yes
        • No
        • Untrusted
        • Basic
        • Secure
        Parameters:
        params - The parameters for the workflow node to model, as provided by the workflow engine.
        context - The context for the BPMN modelling process, as provided by the workflow engine.
        Returns:
        The label for the consequent part.