Class AbstractDelegateExecution

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.AbstractDelegateExecution
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
Direct Known Subclasses:
ZeebeJobDelegateExecution

public abstract class AbstractDelegateExecution extends SimpleVariableScope implements org.camunda.bpm.engine.delegate.DelegateExecution
Abstract DelegateExecution that can be used for as base for DelegateExecution implementations for executing a JavaDelegate.

It contains all methods that have to be implemented with additional REST API calls or wrapper classes that emulate the Camunda Java API.

Author:
Falko Menge (Camunda)
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.camunda.bpm.engine.RepositoryService
     
    static final String
     

    Fields inherited from class org.camunda.community.migration.adapter.execution.SimpleVariableScope

    variableStore

    Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope

    cachedElContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.camunda.bpm.engine.runtime.Incident
    createIncident(String incidentType, String configuration)
     
    org.camunda.bpm.engine.runtime.Incident
    createIncident(String incidentType, String configuration, String message)
     
    org.camunda.bpm.model.bpmn.instance.FlowElement
     
    org.camunda.bpm.model.bpmn.BpmnModelInstance
     
     
     
     
     
     
     
     
    org.camunda.bpm.engine.ProcessEngine
     
    org.camunda.bpm.engine.ProcessEngineServices
     
    org.camunda.bpm.engine.delegate.DelegateExecution
     
    org.camunda.bpm.engine.delegate.DelegateExecution
     
    boolean
     
    void
    resolveIncident(String incidentId)
     
    void
     
    void
    setVariable(String variableName, Object value, String activityId)
     

    Methods inherited from class org.camunda.community.migration.adapter.execution.SimpleVariableScope

    getParentVariableScope, getVariableInstanceFactory, getVariableInstanceLifecycleListeners, getVariableStore

    Methods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope

    collectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocal, setVariablesLocal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.camunda.bpm.engine.delegate.BaseDelegateExecution

    getId

    Methods inherited from interface org.camunda.bpm.engine.delegate.DelegateExecution

    getActivityInstanceId, getCurrentActivityId, getProcessDefinitionId, getProcessInstanceId, getTenantId

    Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope

    getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
  • Field Details

    • VARIABLE_NAME_BUSINESS_KEY

      public static final String VARIABLE_NAME_BUSINESS_KEY
      See Also:
    • repositoryService

      protected org.camunda.bpm.engine.RepositoryService repositoryService
  • Constructor Details

    • AbstractDelegateExecution

      public AbstractDelegateExecution()
    • AbstractDelegateExecution

      public AbstractDelegateExecution(Map<String,? extends Object> variables)
  • Method Details

    • 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