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 java.lang.Object implements DelegateCaseVariableInstance
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityInstanceId
protected java.lang.String
caseExecutionId
protected java.lang.String
caseInstanceId
protected java.lang.String
errorMessage
protected java.lang.String
eventName
protected java.lang.String
executionId
protected java.lang.String
name
protected java.lang.String
processDefinitionId
protected java.lang.String
processInstanceId
protected DelegateCaseExecution
scopeExecution
protected DelegateCaseExecution
sourceExecution
protected java.lang.String
taskId
protected java.lang.String
tenantId
protected TypedValue
value
protected java.lang.String
variableId
-
Constructor Summary
Constructors Constructor Description DelegateCaseVariableInstanceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DelegateCaseVariableInstanceImpl
fromVariableInstance(VariableInstance variableInstance)
java.lang.String
getActivityInstanceId()
Returns the corresponding activity instance id.java.lang.String
getBatchId()
Returns the corresponding batch id.java.lang.String
getCaseExecutionId()
Returns the corresponding case execution id.java.lang.String
getCaseInstanceId()
Returns the corresponding case instance id.java.lang.String
getErrorMessage()
If the variable value could not be loaded, this returns the error message.java.lang.String
getEventName()
The event name, which caused the listener to be notified.java.lang.String
getExecutionId()
Returns the corresponding execution id.java.lang.String
getId()
java.lang.String
getName()
Returns the name of this variable instance.java.lang.String
getProcessDefinitionId()
Return the corresponding process definition id.ProcessEngine
getProcessEngine()
Returns theProcessEngine
providing access to the public API of the process engine.ProcessEngineServices
getProcessEngineServices()
Returns theProcessEngineServices
providing access to the public API of the process engine.java.lang.String
getProcessInstanceId()
Returns the corresponding process instance id.DelegateCaseExecution
getScopeExecution()
Currently not part of public interface.DelegateCaseExecution
getSourceExecution()
The case execution in which context the variable was created/updated/deleted.java.lang.String
getTaskId()
Returns the corresponding task id.java.lang.String
getTenantId()
The id of the tenant this variable belongs to.TypedValue
getTypedValue()
Returns the TypedValue of this variable instance.java.lang.String
getTypeName()
Returns the name of the type of this variable instancejava.lang.Object
getValue()
Returns the value of this variable instance.void
setEventName(java.lang.String eventName)
void
setScopeExecution(DelegateCaseExecution scopeExecution)
void
setSourceExecution(DelegateCaseExecution sourceExecution)
void
setTenantId(java.lang.String tenantId)
-
-
-
Field Detail
-
eventName
protected java.lang.String eventName
-
sourceExecution
protected DelegateCaseExecution sourceExecution
-
scopeExecution
protected DelegateCaseExecution scopeExecution
-
variableId
protected java.lang.String variableId
-
processDefinitionId
protected java.lang.String processDefinitionId
-
processInstanceId
protected java.lang.String processInstanceId
-
executionId
protected java.lang.String executionId
-
caseInstanceId
protected java.lang.String caseInstanceId
-
caseExecutionId
protected java.lang.String caseExecutionId
-
taskId
protected java.lang.String taskId
-
activityInstanceId
protected java.lang.String activityInstanceId
-
tenantId
protected java.lang.String tenantId
-
errorMessage
protected java.lang.String errorMessage
-
name
protected java.lang.String name
-
value
protected TypedValue value
-
-
Method Detail
-
getEventName
public java.lang.String getEventName()
Description copied from interface:DelegateCaseVariableInstance
The event name, which caused the listener to be notified. Valid values are the constants defined inCaseVariableListener
.- Specified by:
getEventName
in interfaceDelegateCaseVariableInstance
- Specified by:
getEventName
in interfaceDelegateVariableInstance<DelegateCaseExecution>
-
setEventName
public void setEventName(java.lang.String eventName)
-
getSourceExecution
public DelegateCaseExecution getSourceExecution()
Description copied from interface:DelegateCaseVariableInstance
The case execution in which context the variable was created/updated/deleted.- Specified by:
getSourceExecution
in interfaceDelegateCaseVariableInstance
- Specified by:
getSourceExecution
in 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 java.lang.String getId()
- Specified by:
getId
in interfaceVariableInstance
- Returns:
- the Id of this variable instance
-
getProcessDefinitionId
public java.lang.String getProcessDefinitionId()
Description copied from interface:VariableInstance
Return the corresponding process definition id.- Specified by:
getProcessDefinitionId
in interfaceVariableInstance
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
Description copied from interface:VariableInstance
Returns the corresponding process instance id.- Specified by:
getProcessInstanceId
in interfaceVariableInstance
-
getExecutionId
public java.lang.String getExecutionId()
Description copied from interface:VariableInstance
Returns the corresponding execution id.- Specified by:
getExecutionId
in interfaceVariableInstance
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
Description copied from interface:VariableInstance
Returns the corresponding case instance id.- Specified by:
getCaseInstanceId
in interfaceVariableInstance
-
getCaseExecutionId
public java.lang.String getCaseExecutionId()
Description copied from interface:VariableInstance
Returns the corresponding case execution id.- Specified by:
getCaseExecutionId
in interfaceVariableInstance
-
getTaskId
public java.lang.String getTaskId()
Description copied from interface:VariableInstance
Returns the corresponding task id.- Specified by:
getTaskId
in interfaceVariableInstance
-
getBatchId
public java.lang.String getBatchId()
Description copied from interface:VariableInstance
Returns the corresponding batch id.- Specified by:
getBatchId
in interfaceVariableInstance
-
getActivityInstanceId
public java.lang.String getActivityInstanceId()
Description copied from interface:VariableInstance
Returns the corresponding activity instance id.- Specified by:
getActivityInstanceId
in interfaceVariableInstance
-
getErrorMessage
public java.lang.String getErrorMessage()
Description copied from interface:VariableInstance
If the variable value could not be loaded, this returns the error message.- Specified by:
getErrorMessage
in interfaceVariableInstance
- Returns:
- an error message indicating why the variable value could not be loaded.
-
getTenantId
public java.lang.String getTenantId()
Description copied from interface:VariableInstance
The id of the tenant this variable belongs to. Can benull
if the variable belongs to no single tenant.- Specified by:
getTenantId
in interfaceVariableInstance
-
setTenantId
public void setTenantId(java.lang.String tenantId)
-
getTypeName
public java.lang.String getTypeName()
Description copied from interface:VariableInstance
Returns the name of the type of this variable instance- Specified by:
getTypeName
in interfaceVariableInstance
- Returns:
- the type name of the variable
-
getName
public java.lang.String getName()
Description copied from interface:VariableInstance
Returns the name of this variable instance.- Specified by:
getName
in interfaceVariableInstance
-
getValue
public java.lang.Object getValue()
Description copied from interface:VariableInstance
Returns the value of this variable instance.- Specified by:
getValue
in interfaceVariableInstance
-
getTypedValue
public TypedValue getTypedValue()
Description copied from interface:VariableInstance
Returns the TypedValue of this variable instance.- Specified by:
getTypedValue
in interfaceVariableInstance
-
getProcessEngineServices
public ProcessEngineServices getProcessEngineServices()
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngineServices
providing access to the public API of the process engine.- Specified by:
getProcessEngineServices
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngineServices
.
-
getProcessEngine
public ProcessEngine getProcessEngine()
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngine
providing access to the public API of the process engine.- Specified by:
getProcessEngine
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngine
.
-
fromVariableInstance
public static DelegateCaseVariableInstanceImpl fromVariableInstance(VariableInstance variableInstance)
-
-