Class DelegateCaseVariableInstanceFake
- java.lang.Object
-
- org.camunda.bpm.extension.mockito.delegate.DelegateCaseVariableInstanceFake
-
- All Implemented Interfaces:
org.camunda.bpm.engine.delegate.DelegateCaseVariableInstance,org.camunda.bpm.engine.delegate.DelegateVariableInstance<org.camunda.bpm.engine.delegate.DelegateCaseExecution>,org.camunda.bpm.engine.delegate.ProcessEngineServicesAware,org.camunda.bpm.engine.runtime.VariableInstance
public class DelegateCaseVariableInstanceFake extends Object implements org.camunda.bpm.engine.delegate.DelegateCaseVariableInstance
ThisDelegateCaseVariableInstanceis useful when testingCaseVariableListeners in case plan items.
-
-
Constructor Summary
Constructors Constructor Description DelegateCaseVariableInstanceFake()DelegateCaseVariableInstanceFake(String id)
-
Method Summary
-
-
-
Constructor Detail
-
DelegateCaseVariableInstanceFake
public DelegateCaseVariableInstanceFake()
-
DelegateCaseVariableInstanceFake
public DelegateCaseVariableInstanceFake(String id)
-
-
Method Detail
-
create
public DelegateCaseVariableInstanceFake create(String name, org.camunda.bpm.engine.variable.value.TypedValue value)
-
update
public DelegateCaseVariableInstanceFake update(String name, org.camunda.bpm.engine.variable.value.TypedValue value)
-
delete
public DelegateCaseVariableInstanceFake delete(String name, org.camunda.bpm.engine.variable.value.TypedValue typedValue)
-
getEventName
public String getEventName()
- Specified by:
getEventNamein interfaceorg.camunda.bpm.engine.delegate.DelegateCaseVariableInstance- Specified by:
getEventNamein interfaceorg.camunda.bpm.engine.delegate.DelegateVariableInstance<org.camunda.bpm.engine.delegate.DelegateCaseExecution>
-
withEventName
public DelegateCaseVariableInstanceFake withEventName(String eventName)
-
getSourceExecution
public org.camunda.bpm.engine.delegate.DelegateCaseExecution getSourceExecution()
- Specified by:
getSourceExecutionin interfaceorg.camunda.bpm.engine.delegate.DelegateCaseVariableInstance- Specified by:
getSourceExecutionin interfaceorg.camunda.bpm.engine.delegate.DelegateVariableInstance<org.camunda.bpm.engine.delegate.DelegateCaseExecution>
-
withSourceExecution
public DelegateCaseVariableInstanceFake withSourceExecution(org.camunda.bpm.engine.delegate.DelegateCaseExecution sourceExecution)
-
getProcessEngineServices
public org.camunda.bpm.engine.ProcessEngineServices getProcessEngineServices()
- Specified by:
getProcessEngineServicesin interfaceorg.camunda.bpm.engine.delegate.ProcessEngineServicesAware
-
getProcessEngine
public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
- Specified by:
getProcessEnginein interfaceorg.camunda.bpm.engine.delegate.ProcessEngineServicesAware
-
withProcessEngineServices
public DelegateCaseVariableInstanceFake withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices)
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withId
public DelegateCaseVariableInstanceFake withId(String id)
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withName
public DelegateCaseVariableInstanceFake withName(String name)
-
getTypeName
public String getTypeName()
- Specified by:
getTypeNamein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
getValue
public Object getValue()
- Specified by:
getValuein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
getTypedValue
public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue()
- Specified by:
getTypedValuein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withValue
public DelegateCaseVariableInstanceFake withValue(Object value)
-
withValue
public DelegateCaseVariableInstanceFake withValue(org.camunda.bpm.engine.variable.value.TypedValue typedValue)
-
getProcessInstanceId
public String getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withProcessInstanceId
public DelegateCaseVariableInstanceFake withProcessInstanceId(String processInstanceId)
-
getProcessDefinitionId
public String getProcessDefinitionId()
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withProcessDefinitionId
public DelegateCaseVariableInstanceFake withProcessDefinitionId()
-
getExecutionId
public String getExecutionId()
- Specified by:
getExecutionIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withExecutionId
public DelegateCaseVariableInstanceFake withExecutionId(String executionId)
-
getCaseInstanceId
public String getCaseInstanceId()
- Specified by:
getCaseInstanceIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withCaseInstanceId
public DelegateCaseVariableInstanceFake withCaseInstanceId(String caseInstanceId)
-
getCaseExecutionId
public String getCaseExecutionId()
- Specified by:
getCaseExecutionIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withCaseExecutionId
public DelegateCaseVariableInstanceFake withCaseExecutionId(String caseExecutionId)
-
getTaskId
public String getTaskId()
- Specified by:
getTaskIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withBatchId
public DelegateCaseVariableInstanceFake withBatchId(String batchId)
-
getBatchId
public String getBatchId()
- Specified by:
getBatchIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withTaskId
public DelegateCaseVariableInstanceFake withTaskId(String taskId)
-
getActivityInstanceId
public String getActivityInstanceId()
- Specified by:
getActivityInstanceIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withActivityInstanceId
public DelegateCaseVariableInstanceFake withActivityInstanceId(String activityInstanceId)
-
getErrorMessage
public String getErrorMessage()
- Specified by:
getErrorMessagein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withErrorMessage
public DelegateCaseVariableInstanceFake withErrorMessage(String errorMessage)
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withTenantId
public DelegateCaseVariableInstanceFake withTenantId(String tenantId)
-
-