Class UserTaskExecutable
- java.lang.Object
-
- org.camunda.bpm.scenario.impl.delegate.AbstractProcessEngineServicesDelegate
-
- org.camunda.bpm.scenario.impl.AbstractExecutable<I>
-
- org.camunda.bpm.scenario.impl.WaitstateExecutable<org.camunda.bpm.engine.task.Task>
-
- org.camunda.bpm.scenario.impl.delegate.AbstractTaskDelegate
-
- org.camunda.bpm.scenario.impl.waitstate.UserTaskExecutable
-
- All Implemented Interfaces:
Comparable<AbstractExecutable>,org.camunda.bpm.engine.task.Task,Deferrable,ProcessInstanceAwareDelegate,TaskDelegate,Executable<AbstractExecutable>
public class UserTaskExecutable extends AbstractTaskDelegate
- Author:
- Martin Schimak
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.camunda.bpm.scenario.impl.Executable
Executable.Deferreds, Executable.Helpers, Executable.Jobs, Executable.Waitstates
-
-
Field Summary
-
Fields inherited from class org.camunda.bpm.scenario.impl.WaitstateExecutable
historicDelegate
-
Fields inherited from class org.camunda.bpm.scenario.impl.AbstractExecutable
delegate, idComparator, runner
-
Fields inherited from class org.camunda.bpm.scenario.impl.delegate.AbstractProcessEngineServicesDelegate
processEngine
-
-
Constructor Summary
Constructors Constructor Description UserTaskExecutable(ProcessRunnerImpl runner, org.camunda.bpm.engine.history.HistoricActivityInstance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Actionaction(ProcessScenario scenario)voidcomplete()Complete this user task.voidcomplete(Map<String,Object> variables)Complete this user task and deliver a map of additional information created by the human user (e.g.protected org.camunda.bpm.engine.task.TaskgetDelegate()voidhandleBpmnError(String errorCode)Handle a BPMN Error occurring with or raised by the human user.voidhandleBpmnError(String errorCode, Map<String,Object> variables)Handle a BPMN Error occurring with or raised by the human user and deliver a map of additional information to be stored as process instance variables.-
Methods inherited from class org.camunda.bpm.scenario.impl.delegate.AbstractTaskDelegate
delegate, getAssignee, getCaseDefinitionId, getCaseExecutionId, getCaseInstanceId, getCreateTime, getDelegationState, getDescription, getDueDate, getFollowUpDate, getFormKey, getId, getName, getOwner, getParentTaskId, getPriority, getProcessDefinitionId, getProcessInstanceId, getTaskDefinitionKey, getTenantId, isSuspended, setAssignee, setCaseInstanceId, setDelegationState, setDescription, setDueDate, setFollowUpDate, setName, setOwner, setParentTaskId, setPriority, setTenantId
-
Methods inherited from class org.camunda.bpm.scenario.impl.WaitstateExecutable
action, compareTo, defer, execute, getActivityId, getExecutionId, getProcessInstance, isExecutableAt
-
Methods inherited from class org.camunda.bpm.scenario.impl.delegate.AbstractProcessEngineServicesDelegate
getAuthorizationService, getCaseService, getDecisionService, getExternalTaskService, getFilterService, getFormService, getHistoryService, getIdentityService, getManagementService, getProcessEngine, getRepositoryService, getRuntimeService, getTaskService
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.scenario.defer.Deferrable
defer
-
Methods inherited from interface org.camunda.bpm.scenario.delegate.ProcessInstanceAwareDelegate
getProcessInstance
-
-
-
-
Constructor Detail
-
UserTaskExecutable
public UserTaskExecutable(ProcessRunnerImpl runner, org.camunda.bpm.engine.history.HistoricActivityInstance instance)
-
-
Method Detail
-
getDelegate
protected org.camunda.bpm.engine.task.Task getDelegate()
- Specified by:
getDelegatein classAbstractExecutable<org.camunda.bpm.engine.task.Task>
-
action
protected Action action(ProcessScenario scenario)
- Specified by:
actionin classWaitstateExecutable<org.camunda.bpm.engine.task.Task>
-
complete
public void complete()
Description copied from interface:TaskDelegateComplete this user task.
-
complete
public void complete(Map<String,Object> variables)
Description copied from interface:TaskDelegateComplete this user task and deliver a map of additional information created by the human user (e.g. by filling out a form) and to be stored as process instance variables.
-
handleBpmnError
public void handleBpmnError(String errorCode)
Description copied from interface:TaskDelegateHandle a BPMN Error occurring with or raised by the human user.- Parameters:
errorCode- of the BPMN error raised.
-
handleBpmnError
public void handleBpmnError(String errorCode, Map<String,Object> variables)
Description copied from interface:TaskDelegateHandle a BPMN Error occurring with or raised by the human user and deliver a map of additional information to be stored as process instance variables.- Parameters:
errorCode- of the BPMN error raised.
-
-