Class ParallelGatewayProcessor

java.lang.Object
io.camunda.zeebe.engine.processing.bpmn.gateway.ParallelGatewayProcessor
All Implemented Interfaces:
BpmnElementProcessor<ExecutableFlowNode>

public final class ParallelGatewayProcessor extends Object implements BpmnElementProcessor<ExecutableFlowNode>
  • Constructor Details

  • Method Details

    • getType

      public Class<ExecutableFlowNode> getType()
      Specified by:
      getType in interface BpmnElementProcessor<ExecutableFlowNode>
      Returns:
      the class that represents the BPMN element
    • finalizeActivation

      public Either<Failure,?> finalizeActivation(ExecutableFlowNode element, BpmnElementContext context)
      Description copied from interface: BpmnElementProcessor
      Finalizes the activation of the BPMN element. This method is invoked after the element has been initialized and activated, ensuring that any additional steps required to fully establish the element's active state are completed.

      This method is typically invoked after the processing of START Execution Listeners.

      Specified by:
      finalizeActivation in interface BpmnElementProcessor<ExecutableFlowNode>
      Parameters:
      element - the instance of the BPMN element that is executed
      context - process instance-related data of the element that is executed
      Returns:
      Eitherinvalid input: '<'Failure, ?> indicating the outcome of the finalize activation attempt
    • finalizeCompletion

      public Either<Failure,?> finalizeCompletion(ExecutableFlowNode element, BpmnElementContext context)
      Description copied from interface: BpmnElementProcessor
      Finalizes the completion of the BPMN element. This method is called when the element has finished executing its main behavior and is ready to transition to a completed state.

      This method is typically invoked after the processing of END Execution Listeners.

      Specified by:
      finalizeCompletion in interface BpmnElementProcessor<ExecutableFlowNode>
      Parameters:
      element - the instance of the BPMN element that is executed
      context - process instance-related data of the element that is executed
      Returns:
      Eitherinvalid input: '<'Failure, ?> indicating the outcome of the finalize completion attempt
    • onTerminate

      public void onTerminate(ExecutableFlowNode element, BpmnElementContext context)
      Description copied from interface: BpmnElementProcessor
      The element is going to be terminated. Perform every action to terminate the element and continue with the element that caused the termination (e.g. the triggered boundary event).

      Possible actions:

      • close event subscriptions
      • resolve incidents
      • activate the triggered boundary event - if any
      • activate the triggered event sub-process - if any
      • continue with parent element
      • clean up the state
      Next step: none.
      Specified by:
      onTerminate in interface BpmnElementProcessor<ExecutableFlowNode>
      Parameters:
      element - the instance of the BPMN element that is executed
      context - process instance-related data of the element that is executed