Class DelegateCaseVariableInstanceFake
java.lang.Object
org.camunda.community.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
This
DelegateCaseVariableInstance is useful when testing CaseVariableListeners in case plan items.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()org.camunda.bpm.engine.ProcessEngineorg.camunda.bpm.engine.ProcessEngineServicesorg.camunda.bpm.engine.delegate.DelegateCaseExecutionorg.camunda.bpm.engine.variable.value.TypedValuegetValue()toString()withActivityInstanceId(String activityInstanceId) withBatchId(String batchId) withCaseExecutionId(String caseExecutionId) withCaseInstanceId(String caseInstanceId) withErrorMessage(String errorMessage) withEventName(String eventName) withExecutionId(String executionId) withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices) withProcessInstanceId(String processInstanceId) withSourceExecution(org.camunda.bpm.engine.delegate.DelegateCaseExecution sourceExecution) withTaskId(String taskId) withTenantId(String tenantId) withValue(org.camunda.bpm.engine.variable.value.TypedValue typedValue)
-
Constructor Details
-
DelegateCaseVariableInstanceFake
public DelegateCaseVariableInstanceFake() -
DelegateCaseVariableInstanceFake
-
-
Method Details
-
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
- 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
-
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
- Specified by:
getIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withId
-
getName
- Specified by:
getNamein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withName
-
getTypeName
- Specified by:
getTypeNamein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
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
-
withValue
public DelegateCaseVariableInstanceFake withValue(org.camunda.bpm.engine.variable.value.TypedValue typedValue) -
getProcessInstanceId
- Specified by:
getProcessInstanceIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withProcessInstanceId
-
getProcessDefinitionId
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withProcessDefinitionId
-
getExecutionId
- Specified by:
getExecutionIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withExecutionId
-
getCaseInstanceId
- Specified by:
getCaseInstanceIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withCaseInstanceId
-
getCaseExecutionId
- Specified by:
getCaseExecutionIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withCaseExecutionId
-
getTaskId
- Specified by:
getTaskIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withBatchId
-
getBatchId
- Specified by:
getBatchIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withTaskId
-
getActivityInstanceId
- Specified by:
getActivityInstanceIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withActivityInstanceId
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withErrorMessage
-
getTenantId
- Specified by:
getTenantIdin interfaceorg.camunda.bpm.engine.runtime.VariableInstance
-
withTenantId
-
toString
-