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 Details

    • DelegateCaseVariableInstanceFake

      public DelegateCaseVariableInstanceFake()
    • DelegateCaseVariableInstanceFake

      public DelegateCaseVariableInstanceFake(String id)
  • 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

      public String getEventName()
      Specified by:
      getEventName in interface org.camunda.bpm.engine.delegate.DelegateCaseVariableInstance
      Specified by:
      getEventName in interface org.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:
      getSourceExecution in interface org.camunda.bpm.engine.delegate.DelegateCaseVariableInstance
      Specified by:
      getSourceExecution in interface org.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:
      getProcessEngineServices in interface org.camunda.bpm.engine.delegate.ProcessEngineServicesAware
    • getProcessEngine

      public org.camunda.bpm.engine.ProcessEngine getProcessEngine()
      Specified by:
      getProcessEngine in interface org.camunda.bpm.engine.delegate.ProcessEngineServicesAware
    • withProcessEngineServices

      public DelegateCaseVariableInstanceFake withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices)
    • getId

      public String getId()
      Specified by:
      getId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withId

    • getName

      public String getName()
      Specified by:
      getName in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withName

      public DelegateCaseVariableInstanceFake withName(String name)
    • getTypeName

      public String getTypeName()
      Specified by:
      getTypeName in interface org.camunda.bpm.engine.runtime.VariableInstance
    • getValue

      public Object getValue()
      Specified by:
      getValue in interface org.camunda.bpm.engine.runtime.VariableInstance
    • getTypedValue

      public org.camunda.bpm.engine.variable.value.TypedValue getTypedValue()
      Specified by:
      getTypedValue in interface org.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:
      getProcessInstanceId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withProcessInstanceId

      public DelegateCaseVariableInstanceFake withProcessInstanceId(String processInstanceId)
    • getProcessDefinitionId

      public String getProcessDefinitionId()
      Specified by:
      getProcessDefinitionId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withProcessDefinitionId

      public DelegateCaseVariableInstanceFake withProcessDefinitionId()
    • getExecutionId

      public String getExecutionId()
      Specified by:
      getExecutionId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withExecutionId

      public DelegateCaseVariableInstanceFake withExecutionId(String executionId)
    • getCaseInstanceId

      public String getCaseInstanceId()
      Specified by:
      getCaseInstanceId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withCaseInstanceId

      public DelegateCaseVariableInstanceFake withCaseInstanceId(String caseInstanceId)
    • getCaseExecutionId

      public String getCaseExecutionId()
      Specified by:
      getCaseExecutionId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withCaseExecutionId

      public DelegateCaseVariableInstanceFake withCaseExecutionId(String caseExecutionId)
    • getTaskId

      public String getTaskId()
      Specified by:
      getTaskId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withBatchId

      public DelegateCaseVariableInstanceFake withBatchId(String batchId)
    • getBatchId

      public String getBatchId()
      Specified by:
      getBatchId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withTaskId

      public DelegateCaseVariableInstanceFake withTaskId(String taskId)
    • getActivityInstanceId

      public String getActivityInstanceId()
      Specified by:
      getActivityInstanceId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withActivityInstanceId

      public DelegateCaseVariableInstanceFake withActivityInstanceId(String activityInstanceId)
    • getErrorMessage

      public String getErrorMessage()
      Specified by:
      getErrorMessage in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withErrorMessage

      public DelegateCaseVariableInstanceFake withErrorMessage(String errorMessage)
    • getTenantId

      public String getTenantId()
      Specified by:
      getTenantId in interface org.camunda.bpm.engine.runtime.VariableInstance
    • withTenantId

      public DelegateCaseVariableInstanceFake withTenantId(String tenantId)
    • toString

      public String toString()
      Overrides:
      toString in class Object