Class DelegateCaseVariableInstanceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.variable.listener.DelegateCaseVariableInstanceImpl
-
- All Implemented Interfaces:
DelegateCaseVariableInstance,DelegateVariableInstance<DelegateCaseExecution>,ProcessEngineServicesAware,VariableInstance
public class DelegateCaseVariableInstanceImpl extends Object implements DelegateCaseVariableInstance
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected StringactivityInstanceIdprotected StringcaseExecutionIdprotected StringcaseInstanceIdprotected StringerrorMessageprotected StringeventNameprotected StringexecutionIdprotected Stringnameprotected StringprocessDefinitionIdprotected StringprocessInstanceIdprotected DelegateCaseExecutionscopeExecutionprotected DelegateCaseExecutionsourceExecutionprotected StringtaskIdprotected StringtenantIdprotected org.camunda.bpm.engine.variable.value.TypedValuevalueprotected StringvariableId
-
Constructor Summary
Constructors Constructor Description DelegateCaseVariableInstanceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DelegateCaseVariableInstanceImplfromVariableInstance(VariableInstance variableInstance)StringgetActivityInstanceId()Returns the corresponding activity instance id.StringgetBatchId()Returns the corresponding batch id.StringgetCaseExecutionId()Returns the corresponding case execution id.StringgetCaseInstanceId()Returns the corresponding case instance id.StringgetErrorMessage()If the variable value could not be loaded, this returns the error message.StringgetEventName()The event name, which caused the listener to be notified.StringgetExecutionId()Returns the corresponding execution id.StringgetId()StringgetName()Returns the name of this variable instance.StringgetProcessDefinitionId()Return the corresponding process definition id.ProcessEnginegetProcessEngine()Returns theProcessEngineproviding access to the public API of the process engine.ProcessEngineServicesgetProcessEngineServices()Returns theProcessEngineServicesproviding access to the public API of the process engine.StringgetProcessInstanceId()Returns the corresponding process instance id.DelegateCaseExecutiongetScopeExecution()Currently not part of public interface.DelegateCaseExecutiongetSourceExecution()The case execution in which context the variable was created/updated/deleted.StringgetTaskId()Returns the corresponding task id.StringgetTenantId()The id of the tenant this variable belongs to.org.camunda.bpm.engine.variable.value.TypedValuegetTypedValue()Returns the TypedValue of this variable instance.StringgetTypeName()Returns the name of the type of this variable instanceObjectgetValue()Returns the value of this variable instance.voidsetEventName(String eventName)voidsetScopeExecution(DelegateCaseExecution scopeExecution)voidsetSourceExecution(DelegateCaseExecution sourceExecution)voidsetTenantId(String tenantId)
-
-
-
Field Detail
-
eventName
protected String eventName
-
sourceExecution
protected DelegateCaseExecution sourceExecution
-
scopeExecution
protected DelegateCaseExecution scopeExecution
-
variableId
protected String variableId
-
processDefinitionId
protected String processDefinitionId
-
processInstanceId
protected String processInstanceId
-
executionId
protected String executionId
-
caseInstanceId
protected String caseInstanceId
-
caseExecutionId
protected String caseExecutionId
-
taskId
protected String taskId
-
activityInstanceId
protected String activityInstanceId
-
tenantId
protected String tenantId
-
errorMessage
protected String errorMessage
-
name
protected String name
-
value
protected org.camunda.bpm.engine.variable.value.TypedValue value
-
-
Method Detail
-
getEventName
public String getEventName()
Description copied from interface:DelegateCaseVariableInstanceThe event name, which caused the listener to be notified. Valid values are the constants defined inCaseVariableListener.- Specified by:
getEventNamein interfaceDelegateCaseVariableInstance- Specified by:
getEventNamein interfaceDelegateVariableInstance<DelegateCaseExecution>
-
setEventName
public void setEventName(String eventName)
-
getSourceExecution
public DelegateCaseExecution getSourceExecution()
Description copied from interface:DelegateCaseVariableInstanceThe case execution in which context the variable was created/updated/deleted.- Specified by:
getSourceExecutionin interfaceDelegateCaseVariableInstance- Specified by:
getSourceExecutionin interfaceDelegateVariableInstance<DelegateCaseExecution>
-
setSourceExecution
public void setSourceExecution(DelegateCaseExecution sourceExecution)
-
getScopeExecution
public DelegateCaseExecution getScopeExecution()
Currently not part of public interface.
-
setScopeExecution
public void setScopeExecution(DelegateCaseExecution scopeExecution)
-
getId
public String getId()
- Specified by:
getIdin interfaceVariableInstance- Returns:
- the Id of this variable instance
-
getProcessDefinitionId
public String getProcessDefinitionId()
Description copied from interface:VariableInstanceReturn the corresponding process definition id.- Specified by:
getProcessDefinitionIdin interfaceVariableInstance
-
getProcessInstanceId
public String getProcessInstanceId()
Description copied from interface:VariableInstanceReturns the corresponding process instance id.- Specified by:
getProcessInstanceIdin interfaceVariableInstance
-
getExecutionId
public String getExecutionId()
Description copied from interface:VariableInstanceReturns the corresponding execution id.- Specified by:
getExecutionIdin interfaceVariableInstance
-
getCaseInstanceId
public String getCaseInstanceId()
Description copied from interface:VariableInstanceReturns the corresponding case instance id.- Specified by:
getCaseInstanceIdin interfaceVariableInstance
-
getCaseExecutionId
public String getCaseExecutionId()
Description copied from interface:VariableInstanceReturns the corresponding case execution id.- Specified by:
getCaseExecutionIdin interfaceVariableInstance
-
getTaskId
public String getTaskId()
Description copied from interface:VariableInstanceReturns the corresponding task id.- Specified by:
getTaskIdin interfaceVariableInstance
-
getBatchId
public String getBatchId()
Description copied from interface:VariableInstanceReturns the corresponding batch id.- Specified by:
getBatchIdin interfaceVariableInstance
-
getActivityInstanceId
public String getActivityInstanceId()
Description copied from interface:VariableInstanceReturns the corresponding activity instance id.- Specified by:
getActivityInstanceIdin interfaceVariableInstance
-
getErrorMessage
public String getErrorMessage()
Description copied from interface:VariableInstanceIf the variable value could not be loaded, this returns the error message.- Specified by:
getErrorMessagein interfaceVariableInstance- Returns:
- an error message indicating why the variable value could not be loaded.
-
getTenantId
public String getTenantId()
Description copied from interface:VariableInstanceThe id of the tenant this variable belongs to. Can benullif the variable belongs to no single tenant.- Specified by:
getTenantIdin interfaceVariableInstance
-
setTenantId
public void setTenantId(String tenantId)
-
getTypeName
public String getTypeName()
Description copied from interface:VariableInstanceReturns the name of the type of this variable instance- Specified by:
getTypeNamein interfaceVariableInstance- Returns:
- the type name of the variable
-
getName
public String getName()
Description copied from interface:VariableInstanceReturns the name of this variable instance.- Specified by:
getNamein interfaceVariableInstance
-
getValue
public Object getValue()
Description copied from interface:VariableInstanceReturns the value of this variable instance.- Specified by:
getValuein interfaceVariableInstance
-
getTypedValue
public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue()
Description copied from interface:VariableInstanceReturns the TypedValue of this variable instance.- Specified by:
getTypedValuein interfaceVariableInstance
-
getProcessEngineServices
public ProcessEngineServices getProcessEngineServices()
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineServicesproviding access to the public API of the process engine.- Specified by:
getProcessEngineServicesin interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngineServices.
-
getProcessEngine
public ProcessEngine getProcessEngine()
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineproviding access to the public API of the process engine.- Specified by:
getProcessEnginein interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngine.
-
fromVariableInstance
public static DelegateCaseVariableInstanceImpl fromVariableInstance(VariableInstance variableInstance)
-
-