Class DelegateHelper

    • Constructor Detail

      • DelegateHelper

        public DelegateHelper()
    • Method Detail

      • leaveDelegate

        public static void leaveDelegate​(DelegateExecution delegateExecution)
        To be used in an ActivityBehavior or JavaDelegate: leaves according to the default BPMN 2.0 rules: all sequenceflow with a condition that evaluates to true are followed.
      • leaveDelegate

        public static void leaveDelegate​(DelegateExecution delegateExecution,
                                         String sequenceFlowId)
        To be used in an ActivityBehavior or JavaDelegate: leaves the current activity via one specific sequenceflow.
      • getBpmnModel

        public static org.flowable.bpmn.model.BpmnModel getBpmnModel​(DelegateExecution execution)
        Returns the BpmnModel matching the process definition bpmn model for the process definition of the passed DelegateExecution.
      • getFlowElement

        public static org.flowable.bpmn.model.FlowElement getFlowElement​(DelegateExecution execution)
        Returns the current FlowElement where the DelegateExecution is currently at.
      • isExecutingExecutionListener

        public static boolean isExecutingExecutionListener​(DelegateExecution execution)
        Returns whether or not the provided execution is being use for executing an ExecutionListener.
      • getFlowElementExtensionElements

        public static Map<String,​List<org.flowable.bpmn.model.ExtensionElement>> getFlowElementExtensionElements​(DelegateExecution execution)
      • getListenerExtensionElements

        public static Map<String,​List<org.flowable.bpmn.model.ExtensionElement>> getListenerExtensionElements​(DelegateExecution execution)
      • getFlowElementFields

        public static List<org.flowable.bpmn.model.FieldExtension> getFlowElementFields​(DelegateExecution execution)
      • getListenerFields

        public static List<org.flowable.bpmn.model.FieldExtension> getListenerFields​(DelegateExecution execution)
      • getFlowElementField

        public static org.flowable.bpmn.model.FieldExtension getFlowElementField​(DelegateExecution execution,
                                                                                 String fieldName)
      • getListenerField

        public static org.flowable.bpmn.model.FieldExtension getListenerField​(DelegateExecution execution,
                                                                              String fieldName)
      • createExpressionForField

        public static org.flowable.common.engine.api.delegate.Expression createExpressionForField​(org.flowable.bpmn.model.FieldExtension fieldExtension)
        Creates an Expression for the FieldExtension.
      • getFlowElementFieldExpression

        public static org.flowable.common.engine.api.delegate.Expression getFlowElementFieldExpression​(DelegateExecution execution,
                                                                                                       String fieldName)
      • getListenerFieldExpression

        public static org.flowable.common.engine.api.delegate.Expression getListenerFieldExpression​(DelegateExecution execution,
                                                                                                    String fieldName)