Class ZeebeJobDelegateExecution

java.lang.Object
org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
org.camunda.community.migration.adapter.execution.SimpleVariableScope
org.camunda.community.migration.adapter.execution.ZeebeJobDelegateExecution
All Implemented Interfaces:
Serializable, org.camunda.bpm.engine.delegate.BaseDelegateExecution, org.camunda.bpm.engine.delegate.BpmnModelExecutionContext, org.camunda.bpm.engine.delegate.DelegateExecution, org.camunda.bpm.engine.delegate.ProcessEngineServicesAware, org.camunda.bpm.engine.delegate.VariableScope, org.camunda.bpm.engine.impl.core.variable.event.VariableEventDispatcher

public class ZeebeJobDelegateExecution extends SimpleVariableScope implements org.camunda.bpm.engine.delegate.DelegateExecution
DelegateExecution implementation that can be initialized with an ActivatedJob and provides all methods required for executing a JavaDelegate as part of a job worker.
Author:
Falko Menge (Camunda)
See Also:
  • Field Details

  • Constructor Details

    • ZeebeJobDelegateExecution

      public ZeebeJobDelegateExecution(io.camunda.zeebe.client.api.response.ActivatedJob job, VariableTyper variableTyper)
  • Method Details

    • getProcessInstanceId

      public String getProcessInstanceId()
      Specified by:
      getProcessInstanceId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getProcessDefinitionId

      public String getProcessDefinitionId()
      Specified by:
      getProcessDefinitionId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getCurrentActivityId

      public String getCurrentActivityId()
      Specified by:
      getCurrentActivityId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getActivityInstanceId

      public String getActivityInstanceId()
      Specified by:
      getActivityInstanceId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getTenantId

      public String getTenantId()
      Specified by:
      getTenantId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getId

      public String getId()
      Specified by:
      getId in interface org.camunda.bpm.engine.delegate.BaseDelegateExecution
    • getCurrentActivityName

      public String getCurrentActivityName()
      Specified by:
      getCurrentActivityName in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getBpmnModelElementInstance

      public org.camunda.bpm.model.bpmn.instance.FlowElement getBpmnModelElementInstance()
      Specified by:
      getBpmnModelElementInstance in interface org.camunda.bpm.engine.delegate.BpmnModelExecutionContext
    • getBpmnModelInstance

      public org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()
      Specified by:
      getBpmnModelInstance in interface org.camunda.bpm.engine.delegate.BpmnModelExecutionContext
    • getProcessEngineServices

      public org.camunda.bpm.engine.ProcessEngineServices getProcessEngineServices()
      Specified by:
      getProcessEngineServices in interface org.camunda.bpm.engine.delegate.ProcessEngineServicesAware
    • getProcessEngine

      public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
      Specified by:
      getProcessEngine in interface org.camunda.bpm.engine.delegate.ProcessEngineServicesAware
    • getParentId

      public String getParentId()
      Specified by:
      getParentId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getParentActivityInstanceId

      public String getParentActivityInstanceId()
      Specified by:
      getParentActivityInstanceId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getEventName

      public String getEventName()
      Specified by:
      getEventName in interface org.camunda.bpm.engine.delegate.BaseDelegateExecution
    • getCurrentTransitionId

      public String getCurrentTransitionId()
      Specified by:
      getCurrentTransitionId in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getProcessInstance

      public org.camunda.bpm.engine.delegate.DelegateExecution getProcessInstance()
      Specified by:
      getProcessInstance in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getSuperExecution

      public org.camunda.bpm.engine.delegate.DelegateExecution getSuperExecution()
      Specified by:
      getSuperExecution in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • isCanceled

      public boolean isCanceled()
      Specified by:
      isCanceled in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • createIncident

      public org.camunda.bpm.engine.runtime.Incident createIncident(String incidentType, String configuration)
      Specified by:
      createIncident in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • createIncident

      public org.camunda.bpm.engine.runtime.Incident createIncident(String incidentType, String configuration, String message)
      Specified by:
      createIncident in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • resolveIncident

      public void resolveIncident(String incidentId)
      Specified by:
      resolveIncident in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getBusinessKey

      public String getBusinessKey()
      Specified by:
      getBusinessKey in interface org.camunda.bpm.engine.delegate.BaseDelegateExecution
    • getProcessBusinessKey

      public String getProcessBusinessKey()
      Specified by:
      getProcessBusinessKey in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • setProcessBusinessKey

      public void setProcessBusinessKey(String businessKey)
      Specified by:
      setProcessBusinessKey in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • setVariable

      public void setVariable(String variableName, Object value, String activityId)
      Specified by:
      setVariable in interface org.camunda.bpm.engine.delegate.DelegateExecution
    • getJob

      public io.camunda.zeebe.client.api.response.ActivatedJob getJob()