Package org.camunda.bpm.engine.delegate
Interface DelegateExecution
- All Superinterfaces:
- BaseDelegateExecution,- BpmnModelExecutionContext,- ProcessEngineServicesAware,- VariableScope
- All Known Subinterfaces:
- ActivityExecution
- All Known Implementing Classes:
- ExecutionEntity,- ExecutionImpl,- PvmExecutionImpl
public interface DelegateExecution
extends BaseDelegateExecution, BpmnModelExecutionContext, ProcessEngineServicesAware
Execution used in 
JavaDelegates and ExecutionListeners.- Author:
- Tom Baeyens
- 
Method SummaryModifier and TypeMethodDescriptioncreateIncident(String incidentType, String configuration) Create an incident associated with this executioncreateIncident(String incidentType, String configuration, String message) Create an incident associated with this executionreturn the Id of the activity instance currently executed by this executionGets the id of the current activity.Gets the name of the current activity.return the Id of the current transitionreturn the Id of the parent activity instance currently executed by this executionGets the id of the parent of this execution.The business key for the process instance this execution is associated with.The process definition key for the process instance this execution is associated with.Return the process instance execution for this execution.Reference to the overall process instanceIn case this delegate execution is the process instance execution and this process instance was started by a call activity, this method returns the execution which executed the call activity in the super process instance.Return the id of the tenant this execution belongs to.booleanReturns whether this execution has been canceled.voidresolveIncident(String incidentId) Resolve and remove an incident with given idvoidsetProcessBusinessKey(String businessKey) Configure a business key on the process instance this execution is associated with.voidsetVariable(String variableName, Object value, String activityId) Method to store variable in a specific scope identified by activity ID.Methods inherited from interface org.camunda.bpm.engine.delegate.BaseDelegateExecutiongetBusinessKey, getEventName, getIdMethods inherited from interface org.camunda.bpm.engine.delegate.BpmnModelExecutionContextgetBpmnModelElementInstance, getBpmnModelInstanceMethods inherited from interface org.camunda.bpm.engine.delegate.ProcessEngineServicesAwaregetProcessEngine, getProcessEngineServicesMethods inherited from interface org.camunda.bpm.engine.delegate.VariableScopegetVariable, 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
- 
Method Details- 
getProcessInstanceIdString getProcessInstanceId()Reference to the overall process instance
- 
getProcessBusinessKeyString getProcessBusinessKey()The business key for the process instance this execution is associated with.
- 
setProcessBusinessKeyConfigure a business key on the process instance this execution is associated with.- Parameters:
- businessKey- the new business key
 
- 
getProcessDefinitionIdString getProcessDefinitionId()The process definition key for the process instance this execution is associated with.
- 
getParentIdString getParentId()Gets the id of the parent of this execution. If null, the execution represents a process-instance.
- 
getCurrentActivityIdString getCurrentActivityId()Gets the id of the current activity.
- 
getCurrentActivityNameString getCurrentActivityName()Gets the name of the current activity.
- 
getActivityInstanceIdString getActivityInstanceId()return the Id of the activity instance currently executed by this execution
- 
getParentActivityInstanceIdString getParentActivityInstanceId()return the Id of the parent activity instance currently executed by this execution
- 
getCurrentTransitionIdString getCurrentTransitionId()return the Id of the current transition
- 
getProcessInstanceDelegateExecution getProcessInstance()Return the process instance execution for this execution. In case this execution is the process instance execution the method returns itself.
- 
getSuperExecutionDelegateExecution getSuperExecution()In case this delegate execution is the process instance execution and this process instance was started by a call activity, this method returns the execution which executed the call activity in the super process instance.- Returns:
- the super execution or null.
 
- 
isCanceledboolean isCanceled()Returns whether this execution has been canceled.
- 
getTenantIdString getTenantId()Return the id of the tenant this execution belongs to. Can benullif the execution belongs to no single tenant.
- 
setVariableMethod to store variable in a specific scope identified by activity ID.- Parameters:
- variableName- - name of the variable
- value- - value of the variable
- activityId- - activity ID which is associated with destination execution, if not existing - exception will be thrown
- Throws:
- ProcessEngineException- if scope with specified activity ID is not found
 
- 
createIncidentCreate an incident associated with this execution- Parameters:
- incidentType- the type of incident
- configuration-
- Returns:
- a new incident
 
- 
createIncidentCreate an incident associated with this execution- Parameters:
- incidentType- the type of incident
- configuration-
- message-
- Returns:
- a new incident
 
- 
resolveIncidentResolve and remove an incident with given id- Parameters:
- incidentId-
 
 
-