Class JobWorkerTaskSupportingProcessor<T extends ExecutableJobWorkerTask>

java.lang.Object
io.camunda.zeebe.engine.processing.bpmn.task.JobWorkerTaskSupportingProcessor<T>
All Implemented Interfaces:
BpmnElementProcessor<T>
Direct Known Subclasses:
BusinessRuleTaskProcessor, ScriptTaskProcessor, UserTaskProcessor

public abstract class JobWorkerTaskSupportingProcessor<T extends ExecutableJobWorkerTask> extends Object implements BpmnElementProcessor<T>
  • Constructor Details

  • Method Details

    • onActivate

      public void onActivate(T element, BpmnElementContext context)
      Description copied from interface: BpmnElementProcessor
      The element is about to be entered. Perform every action to initialize and activate the element.

      If the element is a wait-state (i.e. it is waiting for an event or an external trigger) then it is waiting after this step to continue. Otherwise, it continues directly to the next step.

      Possible actions:

      • apply input mappings
      • open event subscriptions
      • initialize child elements - if the element is a container (e.g. a sub-process)
      Next step:
      • activating - the element is initialized
      • activated - if no incidents raised
      • complete - if no incidents raised invalid input: '&' not a wait-state.
      Specified by:
      onActivate in interface BpmnElementProcessor<T extends ExecutableJobWorkerTask>
      Parameters:
      element - the instance of the BPMN element that is executed
      context - process instance-related data of the element that is executed
    • onComplete

      public void onComplete(T element, BpmnElementContext context)
      Description copied from interface: BpmnElementProcessor
      The element is going to be left. Perform every action to leave the element and continue with the next element.

      Possible actions:

      • apply output mappings
      • close event subscriptions
      • take outgoing sequence flows - if any
      • continue with parent element - if no outgoing sequence flows
      • clean up the state
      Next step: none.
      Specified by:
      onComplete in interface BpmnElementProcessor<T extends ExecutableJobWorkerTask>
      Parameters:
      element - the instance of the BPMN element that is executed
      context - process instance-related data of the element that is executed
    • onTerminate

      public void onTerminate(T 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<T extends ExecutableJobWorkerTask>
      Parameters:
      element - the instance of the BPMN element that is executed
      context - process instance-related data of the element that is executed
    • isJobBehavior

      protected abstract boolean isJobBehavior(T element, BpmnElementContext context)
    • onActivateInternal

      protected abstract void onActivateInternal(T element, BpmnElementContext context)
    • onCompleteInternal

      protected abstract void onCompleteInternal(T element, BpmnElementContext context)
    • onTerminateInternal

      protected abstract void onTerminateInternal(T element, BpmnElementContext context)