Class ServiceTaskExecutable
- 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.externaltask.ExternalTask>
-
- org.camunda.bpm.scenario.impl.delegate.AbstractExternalTaskDelegate
-
- org.camunda.bpm.scenario.impl.waitstate.ServiceTaskExecutable
-
- All Implemented Interfaces:
Comparable<AbstractExecutable>,org.camunda.bpm.engine.externaltask.ExternalTask,Deferrable,ExternalTaskDelegate,ProcessInstanceAwareDelegate,Executable<AbstractExecutable>
- Direct Known Subclasses:
BusinessRuleTaskExecutable,MessageIntermediateThrowEventExecutable,SendTaskExecutable
public class ServiceTaskExecutable extends AbstractExternalTaskDelegate
- 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 ServiceTaskExecutable(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 external task.voidcomplete(Map<String,Object> variables)Complete this external task and deliver a map of additional information created by the external worker and to be stored as process instance variables.protected voidfetchAndLock()StringgetBusinessKey()protected org.camunda.bpm.engine.externaltask.ExternalTaskgetDelegate()StringgetProcessDefinitionVersionTag()voidhandleBpmnError(String errorCode)Handle a BPMN Error raised by the external worker.voidhandleBpmnError(String errorCode, Map<String,Object> variables)Handle a BPMN Error occurring with or raised by the external worker and deliver a map of additional information to be stored as process instance variables.-
Methods inherited from class org.camunda.bpm.scenario.impl.delegate.AbstractExternalTaskDelegate
getActivityInstanceId, getErrorMessage, getExtensionProperties, getId, getLockExpirationTime, getPriority, getProcessDefinitionId, getProcessDefinitionKey, getProcessInstanceId, getRetries, getTenantId, getTopicName, getWorkerId, isSuspended
-
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.engine.externaltask.ExternalTask
getActivityId, getExecutionId
-
Methods inherited from interface org.camunda.bpm.scenario.delegate.ProcessInstanceAwareDelegate
getProcessInstance
-
-
-
-
Constructor Detail
-
ServiceTaskExecutable
public ServiceTaskExecutable(ProcessRunnerImpl runner, org.camunda.bpm.engine.history.HistoricActivityInstance instance)
-
-
Method Detail
-
getDelegate
protected org.camunda.bpm.engine.externaltask.ExternalTask getDelegate()
- Specified by:
getDelegatein classAbstractExecutable<org.camunda.bpm.engine.externaltask.ExternalTask>
-
action
protected Action action(ProcessScenario scenario)
- Specified by:
actionin classWaitstateExecutable<org.camunda.bpm.engine.externaltask.ExternalTask>
-
fetchAndLock
protected void fetchAndLock()
-
complete
public void complete()
Description copied from interface:ExternalTaskDelegateComplete this external task.
-
complete
public void complete(Map<String,Object> variables)
Description copied from interface:ExternalTaskDelegateComplete this external task and deliver a map of additional information created by the external worker and to be stored as process instance variables.
-
handleBpmnError
public void handleBpmnError(String errorCode)
Description copied from interface:ExternalTaskDelegateHandle a BPMN Error raised by the external worker.- Parameters:
errorCode- of the BPMN error raised.
-
handleBpmnError
public void handleBpmnError(String errorCode, Map<String,Object> variables)
Description copied from interface:ExternalTaskDelegateHandle a BPMN Error occurring with or raised by the external worker and deliver a map of additional information to be stored as process instance variables.- Parameters:
errorCode- of the BPMN error raised.variables- the process variables to be stored
-
getProcessDefinitionVersionTag
public String getProcessDefinitionVersionTag()
-
getBusinessKey
public String getBusinessKey()
-
-