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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessEngineServicesAwareFakeprocessEngineServicesAwareFake-
Fields inherited from class org.camunda.community.mockito.delegate.VariableScopeFake
variableInstanceFactory, variableStore
-
-
Constructor Summary
Constructors Constructor Description DelegateTaskFake()DelegateTaskFake(String id)
-
Method Summary
-
Methods inherited from class org.camunda.community.mockito.delegate.VariableScopeFake
getParentVariableScope, getVariableInstanceFactory, getVariableInstanceLifecycleListeners, getVariableScopeKey, getVariableStore, withVariable, withVariable, withVariableLocal, withVariableLocal, withVariables, withVariablesLocal
-
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
collectVariableNames, collectVariables, dispatchEvent, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocal, setVariablesLocal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariableScopeKey, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
-
-
-
-
Field Detail
-
processEngineServicesAwareFake
protected final ProcessEngineServicesAwareFake processEngineServicesAwareFake
-
-
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, String type)
-
groupIds
public static Set<String> groupIds(org.camunda.bpm.engine.delegate.DelegateTask task, String type)
-
getId
public String getId()
- Specified by:
getIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withId
public DelegateTaskFake withId(String id)
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setName
public void setName(String name)
- Specified by:
setNamein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withName
public DelegateTaskFake withName(String name)
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withDescription
public DelegateTaskFake withDescription(String description)
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setPriority
public void setPriority(int priority)
- Specified by:
setPriorityin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withPriority
public DelegateTaskFake withPriority(int priority)
-
getProcessInstanceId
public String getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withProcessInstanceId
public DelegateTaskFake withProcessInstanceId(String processInstanceId)
-
getProcessDefinitionId
public String getProcessDefinitionId()
- Specified by:
getProcessDefinitionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withProcessDefinitionId
public DelegateTaskFake withProcessDefinitionId(String processDefinitionId)
-
getCaseInstanceId
public String getCaseInstanceId()
- Specified by:
getCaseInstanceIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCaseInstanceId
public DelegateTaskFake withCaseInstanceId(String caseInstanceId)
-
getCaseExecutionId
public String getCaseExecutionId()
- Specified by:
getCaseExecutionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCaseExecutionId
public DelegateTaskFake withCaseExecutionId(String caseExecutionId)
-
getCaseDefinitionId
public String getCaseDefinitionId()
- Specified by:
getCaseDefinitionIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCaseDefinitionId
public DelegateTaskFake withCaseDefinitionId(String caseDefinitionId)
-
getCreateTime
public Date getCreateTime()
- Specified by:
getCreateTimein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withCreateTime
public DelegateTaskFake withCreateTime(Date createTime)
-
getTaskDefinitionKey
public String getTaskDefinitionKey()
- Specified by:
getTaskDefinitionKeyin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withTaskDefinitionKey
public DelegateTaskFake withTaskDefinitionKey(String taskDefinitionKey)
-
getExecution
public org.camunda.bpm.engine.delegate.DelegateExecution getExecution()
- Specified by:
getExecutionin interfaceorg.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:
getExecutionIdin interfaceorg.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:
getCaseExecutionin interfaceorg.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:
getEventNamein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withEventName
public DelegateTaskFake withEventName(String eventName)
-
addCandidateUser
public void addCandidateUser(String userId)
- Specified by:
addCandidateUserin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addCandidateUsers
public void addCandidateUsers(Collection<String> candidateUsers)
- Specified by:
addCandidateUsersin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addCandidateGroup
public void addCandidateGroup(String groupId)
- Specified by:
addCandidateGroupin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addCandidateGroups
public void addCandidateGroups(Collection<String> candidateGroups)
- Specified by:
addCandidateGroupsin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addUserIdentityLink
public void addUserIdentityLink(String userId, String type)
- Specified by:
addUserIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
addGroupIdentityLink
public void addGroupIdentityLink(String groupId, String type)
- Specified by:
addGroupIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteCandidateUser
public void deleteCandidateUser(String userId)
- Specified by:
deleteCandidateUserin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteCandidateGroup
public void deleteCandidateGroup(String groupId)
- Specified by:
deleteCandidateGroupin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteUserIdentityLink
public void deleteUserIdentityLink(String userId, String type)
- Specified by:
deleteUserIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
deleteGroupIdentityLink
public void deleteGroupIdentityLink(String groupId, String type)
- Specified by:
deleteGroupIdentityLinkin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getCandidates
public Set<org.camunda.bpm.engine.task.IdentityLink> getCandidates()
- Specified by:
getCandidatesin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getOwner
public String getOwner()
- Specified by:
getOwnerin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setOwner
public void setOwner(String owner)
- Specified by:
setOwnerin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getAssignee
public String getAssignee()
- Specified by:
getAssigneein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setAssignee
public void setAssignee(String assignee)
- Specified by:
setAssigneein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withAssignee
public DelegateTaskFake withAssignee(String assignee)
-
getDueDate
public Date getDueDate()
- Specified by:
getDueDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setDueDate
public void setDueDate(Date dueDate)
- Specified by:
setDueDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getDeleteReason
public String getDeleteReason()
- Specified by:
getDeleteReasonin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withDeleteReason
public DelegateTaskFake withDeleteReason(String deleteReason)
-
getBpmnModelInstance
public org.camunda.bpm.model.bpmn.BpmnModelInstance getBpmnModelInstance()
- Specified by:
getBpmnModelInstancein interfaceorg.camunda.bpm.engine.delegate.BpmnModelExecutionContext
-
getBpmnModelElementInstance
public org.camunda.bpm.model.bpmn.instance.UserTask getBpmnModelElementInstance()
- Specified by:
getBpmnModelElementInstancein interfaceorg.camunda.bpm.engine.delegate.BpmnModelExecutionContext- Specified by:
getBpmnModelElementInstancein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getTenantId
public String getTenantId()
- Specified by:
getTenantIdin interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
getFollowUpDate
public Date getFollowUpDate()
- Specified by:
getFollowUpDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
setFollowUpDate
public void setFollowUpDate(Date followUpDate)
- Specified by:
setFollowUpDatein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
withFollowUpDate
public DelegateTaskFake withFollowUpDate(Date followUpDate)
-
withTenantId
public DelegateTaskFake withTenantId(String tenantId)
-
complete
public void complete()
- Specified by:
completein interfaceorg.camunda.bpm.engine.delegate.DelegateTask
-
isCompleted
public boolean isCompleted()
-
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 T withProcessEngineServices(org.camunda.bpm.engine.ProcessEngineServices processEngineServices)
-
withProcessEngine
public T withProcessEngine(org.camunda.bpm.engine.ProcessEngine processEngine)
-
-