Class DelegateTaskFake

java.lang.Object
org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
org.camunda.community.mockito.delegate.VariableScopeFake<T>
org.camunda.community.mockito.delegate.DelegateTaskFake
All Implemented Interfaces:
Serializable, org.camunda.bpm.engine.delegate.BpmnModelExecutionContext, org.camunda.bpm.engine.delegate.DelegateTask, org.camunda.bpm.engine.delegate.ProcessEngineServicesAware, org.camunda.bpm.engine.delegate.VariableScope, org.camunda.bpm.engine.impl.core.variable.event.VariableEventDispatcher

public class DelegateTaskFake extends VariableScopeFake<T> implements org.camunda.bpm.engine.delegate.DelegateTask, Serializable
See Also:
  • Field Details

  • Constructor Details

    • DelegateTaskFake

      public DelegateTaskFake()
    • DelegateTaskFake

      public DelegateTaskFake(String id)
  • Method Details

    • candidateUserIds

      public static Set<String> candidateUserIds(org.camunda.bpm.engine.delegate.DelegateTask task)
    • candidateGroupIds

      public static Set<String> candidateGroupIds(org.camunda.bpm.engine.delegate.DelegateTask task)
    • userIds

      public static Set<String> userIds(org.camunda.bpm.engine.delegate.DelegateTask task)
    • userIds

      public static Set<String> userIds(org.camunda.bpm.engine.delegate.DelegateTask task, String type)
    • groupIds

      public static Set<String> groupIds(org.camunda.bpm.engine.delegate.DelegateTask task)
    • groupIds

      public static Set<String> groupIds(org.camunda.bpm.engine.delegate.DelegateTask task, String type)
    • getId

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

      public DelegateTaskFake withId(String id)
    • getName

      public String getName()
      Specified by:
      getName in interface org.camunda.bpm.engine.delegate.DelegateTask
    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withName

      public DelegateTaskFake withName(String name)
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.camunda.bpm.engine.delegate.DelegateTask
    • setDescription

      public void setDescription(String description)
      Specified by:
      setDescription in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withDescription

      public DelegateTaskFake withDescription(String description)
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface org.camunda.bpm.engine.delegate.DelegateTask
    • setPriority

      public void setPriority(int priority)
      Specified by:
      setPriority in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withPriority

      public DelegateTaskFake withPriority(int priority)
    • getProcessInstanceId

      public String getProcessInstanceId()
      Specified by:
      getProcessInstanceId in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withProcessInstanceId

      public DelegateTaskFake withProcessInstanceId(String processInstanceId)
    • getProcessDefinitionId

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

      public DelegateTaskFake withProcessDefinitionId(String processDefinitionId)
    • getCaseInstanceId

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

      public DelegateTaskFake withCaseInstanceId(String caseInstanceId)
    • getCaseExecutionId

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

      public DelegateTaskFake withCaseExecutionId(String caseExecutionId)
    • getCaseDefinitionId

      public String getCaseDefinitionId()
      Specified by:
      getCaseDefinitionId in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withCaseDefinitionId

      public DelegateTaskFake withCaseDefinitionId(String caseDefinitionId)
    • getCreateTime

      public Date getCreateTime()
      Specified by:
      getCreateTime in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withCreateTime

      public DelegateTaskFake withCreateTime(Date createTime)
    • getLastUpdated

      public Date getLastUpdated()
      Specified by:
      getLastUpdated in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withLastUpdated

      public DelegateTaskFake withLastUpdated(Date lastUpdated)
    • getTaskDefinitionKey

      public String getTaskDefinitionKey()
      Specified by:
      getTaskDefinitionKey in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withTaskDefinitionKey

      public DelegateTaskFake withTaskDefinitionKey(String taskDefinitionKey)
    • getExecution

      public org.camunda.bpm.engine.delegate.DelegateExecution getExecution()
      Specified by:
      getExecution in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getExecutionFake

      public DelegateExecutionFake getExecutionFake()
      Tries to cast execution to fake.
      Returns:
      delegate execution fake
    • getExecutionId

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

      public DelegateTaskFake withExecutionId(String executionId)
    • withExecution

      public DelegateTaskFake withExecution(org.camunda.bpm.engine.delegate.DelegateExecution execution)
    • getCaseExecution

      public org.camunda.bpm.engine.delegate.DelegateCaseExecution getCaseExecution()
      Specified by:
      getCaseExecution in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getCaseExecutionFake

      public DelegateCaseExecutionFake getCaseExecutionFake()
    • withCaseExecution

      public DelegateTaskFake withCaseExecution(org.camunda.bpm.engine.delegate.DelegateCaseExecution caseExecution)
    • getEventName

      public String getEventName()
      Specified by:
      getEventName in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withEventName

      public DelegateTaskFake withEventName(String eventName)
    • addCandidateUser

      public void addCandidateUser(String userId)
      Specified by:
      addCandidateUser in interface org.camunda.bpm.engine.delegate.DelegateTask
    • addCandidateUsers

      public void addCandidateUsers(Collection<String> candidateUsers)
      Specified by:
      addCandidateUsers in interface org.camunda.bpm.engine.delegate.DelegateTask
    • addCandidateGroup

      public void addCandidateGroup(String groupId)
      Specified by:
      addCandidateGroup in interface org.camunda.bpm.engine.delegate.DelegateTask
    • addCandidateGroups

      public void addCandidateGroups(Collection<String> candidateGroups)
      Specified by:
      addCandidateGroups in interface org.camunda.bpm.engine.delegate.DelegateTask
    • addUserIdentityLink

      public void addUserIdentityLink(String userId, String type)
      Specified by:
      addUserIdentityLink in interface org.camunda.bpm.engine.delegate.DelegateTask
    • addGroupIdentityLink

      public void addGroupIdentityLink(String groupId, String type)
      Specified by:
      addGroupIdentityLink in interface org.camunda.bpm.engine.delegate.DelegateTask
    • deleteCandidateUser

      public void deleteCandidateUser(String userId)
      Specified by:
      deleteCandidateUser in interface org.camunda.bpm.engine.delegate.DelegateTask
    • deleteCandidateGroup

      public void deleteCandidateGroup(String groupId)
      Specified by:
      deleteCandidateGroup in interface org.camunda.bpm.engine.delegate.DelegateTask
    • deleteUserIdentityLink

      public void deleteUserIdentityLink(String userId, String type)
      Specified by:
      deleteUserIdentityLink in interface org.camunda.bpm.engine.delegate.DelegateTask
    • deleteGroupIdentityLink

      public void deleteGroupIdentityLink(String groupId, String type)
      Specified by:
      deleteGroupIdentityLink in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getCandidates

      public Set<org.camunda.bpm.engine.task.IdentityLink> getCandidates()
      Specified by:
      getCandidates in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getOwner

      public String getOwner()
      Specified by:
      getOwner in interface org.camunda.bpm.engine.delegate.DelegateTask
    • setOwner

      public void setOwner(String owner)
      Specified by:
      setOwner in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getAssignee

      public String getAssignee()
      Specified by:
      getAssignee in interface org.camunda.bpm.engine.delegate.DelegateTask
    • setAssignee

      public void setAssignee(String assignee)
      Specified by:
      setAssignee in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withAssignee

      public DelegateTaskFake withAssignee(String assignee)
    • getDueDate

      public Date getDueDate()
      Specified by:
      getDueDate in interface org.camunda.bpm.engine.delegate.DelegateTask
    • setDueDate

      public void setDueDate(Date dueDate)
      Specified by:
      setDueDate in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getDeleteReason

      public String getDeleteReason()
      Specified by:
      getDeleteReason in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withDeleteReason

      public DelegateTaskFake withDeleteReason(String deleteReason)
    • getBpmnModelInstance

      public org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()
      Specified by:
      getBpmnModelInstance in interface org.camunda.bpm.engine.delegate.BpmnModelExecutionContext
    • getBpmnModelElementInstance

      public org.camunda.bpm.model.bpmn.instance.UserTask getBpmnModelElementInstance()
      Specified by:
      getBpmnModelElementInstance in interface org.camunda.bpm.engine.delegate.BpmnModelExecutionContext
      Specified by:
      getBpmnModelElementInstance in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getTenantId

      public String getTenantId()
      Specified by:
      getTenantId in interface org.camunda.bpm.engine.delegate.DelegateTask
    • getFollowUpDate

      public Date getFollowUpDate()
      Specified by:
      getFollowUpDate in interface org.camunda.bpm.engine.delegate.DelegateTask
    • setFollowUpDate

      public void setFollowUpDate(Date followUpDate)
      Specified by:
      setFollowUpDate in interface org.camunda.bpm.engine.delegate.DelegateTask
    • withFollowUpDate

      public DelegateTaskFake withFollowUpDate(Date followUpDate)
    • withTenantId

      public DelegateTaskFake withTenantId(String tenantId)
    • complete

      public void complete()
      Specified by:
      complete in interface org.camunda.bpm.engine.delegate.DelegateTask
    • isCompleted

      public boolean isCompleted()
    • 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • withProcessEngineServices

      public DelegateTaskFake withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices)
    • withProcessEngine

      public DelegateTaskFake withProcessEngine(org.camunda.bpm.engine.ProcessEngine processEngine)