public interface DelegateExecution extends BaseDelegateExecution, BpmnModelExecutionContext, ProcessEngineServicesAware
JavaDelegate
s and ExecutionListener
s.Modifier and Type | Method and Description |
---|---|
Incident |
createIncident(String incidentType,
String configuration)
Create an incident associated with this execution
|
Incident |
createIncident(String incidentType,
String configuration,
String message)
Create an incident associated with this execution
|
String |
getActivityInstanceId()
return the Id of the activity instance currently executed by this execution
|
String |
getCurrentActivityId()
Gets the id of the current activity.
|
String |
getCurrentActivityName()
Gets the name of the current activity.
|
String |
getCurrentTransitionId()
return the Id of the current transition
|
String |
getParentActivityInstanceId()
return the Id of the parent activity instance currently executed by this
execution
|
String |
getParentId()
Gets the id of the parent of this execution.
|
String |
getProcessBusinessKey()
The business key for the process instance this execution is associated
with.
|
String |
getProcessDefinitionId()
The process definition key for the process instance this execution is
associated with.
|
DelegateExecution |
getProcessInstance()
Return the process instance execution for this execution.
|
String |
getProcessInstanceId()
Reference to the overall process instance
|
DelegateExecution |
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.
|
String |
getTenantId()
Return the id of the tenant this execution belongs to.
|
boolean |
isCanceled()
Returns whether this execution has been canceled.
|
void |
resolveIncident(String incidentId)
Resolve and remove an incident with given id
|
void |
setProcessBusinessKey(String businessKey)
Configure a business key on the process instance this execution is associated
with.
|
void |
setVariable(String variableName,
Object value,
String activityId)
Method to store variable in a specific scope identified by activity ID.
|
getBusinessKey, getEventName, getId
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
getBpmnModelElementInstance, getBpmnModelInstance
getProcessEngine, getProcessEngineServices
String getProcessInstanceId()
String getProcessBusinessKey()
void setProcessBusinessKey(String businessKey)
businessKey
- the new business keyString getProcessDefinitionId()
String getParentId()
String getCurrentActivityId()
String getCurrentActivityName()
String getActivityInstanceId()
String getParentActivityInstanceId()
String getCurrentTransitionId()
DelegateExecution getProcessInstance()
DelegateExecution getSuperExecution()
boolean isCanceled()
String getTenantId()
null
if the execution belongs to no single tenant.void setVariable(String variableName, Object value, String activityId)
variableName
- - name of the variablevalue
- - value of the variableactivityId
- - activity ID which is associated with destination execution,
if not existing - exception will be thrownProcessEngineException
- if scope with specified activity ID is not foundIncident createIncident(String incidentType, String configuration)
incidentType
- the type of incidentconfiguration
- Incident createIncident(String incidentType, String configuration, String message)
incidentType
- the type of incidentconfiguration
- message
- void resolveIncident(String incidentId)
incidentId
- Copyright © 2020. All rights reserved.