Class 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:
    Serialized Form
    • Constructor Detail

      • DelegateTaskFake

        public DelegateTaskFake()
      • DelegateTaskFake

        public DelegateTaskFake​(String id)
    • Method Detail

      • 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
      • 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
      • 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
      • 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
      • getProcessInstanceId

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

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

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

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

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

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

        public String getTaskDefinitionKey()
        Specified by:
        getTaskDefinitionKey in interface org.camunda.bpm.engine.delegate.DelegateTask
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • 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
      • withProcessEngineServices

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

        public T withProcessEngine​(org.camunda.bpm.engine.ProcessEngine processEngine)