org.camunda.bpm.engine.impl.variable.listener
Class DelegateCaseVariableInstanceImpl

java.lang.Object
  extended by 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
protected  String activityInstanceId
           
protected  String caseExecutionId
           
protected  String caseInstanceId
           
protected  String errorMessage
           
protected  String eventName
           
protected  String executionId
           
protected  String name
           
protected  String processInstanceId
           
protected  DelegateCaseExecution scopeExecution
           
protected  DelegateCaseExecution sourceExecution
           
protected  String taskId
           
protected  String tenantId
           
protected  org.camunda.bpm.engine.variable.value.TypedValue value
           
protected  String variableId
           
 
Constructor Summary
DelegateCaseVariableInstanceImpl()
           
 
Method Summary
static DelegateCaseVariableInstanceImpl fromVariableInstance(VariableInstance variableInstance)
           
 String getActivityInstanceId()
          Returns the corresponding activity instance id.
 String getCaseExecutionId()
          Returns the corresponding case execution id.
 String getCaseInstanceId()
          Returns the corresponding case instance id.
 String getErrorMessage()
          If the variable value could not be loaded, this returns the error message.
 String getEventName()
          The event name, which caused the listener to be notified.
 String getExecutionId()
          Returns the corresponding execution id.
 String getId()
           
 String getName()
          Returns the name of this variable instance.
 ProcessEngineServices getProcessEngineServices()
          Returns the ProcessEngineServices providing access to the public API of the process engine.
 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.
 String getTaskId()
          Returns the corresponding task id.
 String getTenantId()
          The id of the tenant this variable belongs to.
 org.camunda.bpm.engine.variable.value.TypedValue getTypedValue()
          Returns the TypedValue of this variable instance.
 String getTypeName()
          Returns the name of the type of this variable instance
 Object getValue()
          Returns the value of this variable instance.
 void setEventName(String eventName)
           
 void setScopeExecution(DelegateCaseExecution scopeExecution)
           
 void setSourceExecution(DelegateCaseExecution sourceExecution)
           
 void setTenantId(String tenantId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventName

protected String eventName

sourceExecution

protected DelegateCaseExecution sourceExecution

scopeExecution

protected DelegateCaseExecution scopeExecution

variableId

protected String variableId

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
Constructor Detail

DelegateCaseVariableInstanceImpl

public DelegateCaseVariableInstanceImpl()
Method Detail

getEventName

public String getEventName()
Description copied from interface: DelegateCaseVariableInstance
The event name, which caused the listener to be notified. Valid values are the constants defined in CaseVariableListener.

Specified by:
getEventName in interface DelegateCaseVariableInstance
Specified by:
getEventName in interface DelegateVariableInstance<DelegateCaseExecution>

setEventName

public void setEventName(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 interface DelegateCaseVariableInstance
Specified by:
getSourceExecution in interface DelegateVariableInstance<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:
getId in interface VariableInstance
Returns:
the Id of this variable instance

getProcessInstanceId

public String getProcessInstanceId()
Description copied from interface: VariableInstance
Returns the corresponding process instance id.

Specified by:
getProcessInstanceId in interface VariableInstance

getExecutionId

public String getExecutionId()
Description copied from interface: VariableInstance
Returns the corresponding execution id.

Specified by:
getExecutionId in interface VariableInstance

getCaseInstanceId

public String getCaseInstanceId()
Description copied from interface: VariableInstance
Returns the corresponding case instance id.

Specified by:
getCaseInstanceId in interface VariableInstance

getCaseExecutionId

public String getCaseExecutionId()
Description copied from interface: VariableInstance
Returns the corresponding case execution id.

Specified by:
getCaseExecutionId in interface VariableInstance

getTaskId

public String getTaskId()
Description copied from interface: VariableInstance
Returns the corresponding task id.

Specified by:
getTaskId in interface VariableInstance

getActivityInstanceId

public String getActivityInstanceId()
Description copied from interface: VariableInstance
Returns the corresponding activity instance id.

Specified by:
getActivityInstanceId in interface VariableInstance

getErrorMessage

public String getErrorMessage()
Description copied from interface: VariableInstance
If the variable value could not be loaded, this returns the error message.

Specified by:
getErrorMessage in interface VariableInstance
Returns:
an error message indicating why the variable value could not be loaded.

getTenantId

public String getTenantId()
Description copied from interface: VariableInstance
The id of the tenant this variable belongs to. Can be null if the variable belongs to no single tenant.

Specified by:
getTenantId in interface VariableInstance

setTenantId

public void setTenantId(String tenantId)

getTypeName

public String getTypeName()
Description copied from interface: VariableInstance
Returns the name of the type of this variable instance

Specified by:
getTypeName in interface VariableInstance
Returns:
the type name of the variable

getName

public String getName()
Description copied from interface: VariableInstance
Returns the name of this variable instance.

Specified by:
getName in interface VariableInstance

getValue

public Object getValue()
Description copied from interface: VariableInstance
Returns the value of this variable instance.

Specified by:
getValue in interface VariableInstance

getTypedValue

public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue()
Description copied from interface: VariableInstance
Returns the TypedValue of this variable instance.

Specified by:
getTypedValue in interface VariableInstance

getProcessEngineServices

public ProcessEngineServices getProcessEngineServices()
Description copied from interface: ProcessEngineServicesAware
Returns the ProcessEngineServices providing access to the public API of the process engine.

Specified by:
getProcessEngineServices in interface ProcessEngineServicesAware
Returns:
the ProcessEngineServices.

fromVariableInstance

public static DelegateCaseVariableInstanceImpl fromVariableInstance(VariableInstance variableInstance)


Copyright © 2016 camunda services GmbH. All rights reserved.