Package org.camunda.bpm.engine.impl.cmd
Class ExternalTaskCmd
- java.lang.Object
- 
- org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
 
- 
- Direct Known Subclasses:
- HandleExternalTaskCmd,- SetExternalTaskPriorityCmd,- SetExternalTaskRetriesCmd,- UnlockExternalTaskCmd
 
 public abstract class ExternalTaskCmd extends Object implements Command<Void> Represents a base class for the external task commands. Contains functionality to get the external task by id and check the authorization for the execution of a command on the requested external task.- Author:
- Christopher Zell 
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringexternalTaskIdThe corresponding external task id.
 - 
Constructor SummaryConstructors Constructor Description ExternalTaskCmd(String externalTaskId)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Voidexecute(CommandContext commandContext)protected abstract voidexecute(ExternalTaskEntity externalTask)Executes the specific external task commands, which belongs to the current sub class.protected StringgetUserOperationLogOperationType()protected List<PropertyChange>getUserOperationLogPropertyChanges(ExternalTaskEntity externalTask)protected abstract voidvalidateInput()Validates the current input of the command.protected voidwriteUserOperationLog(CommandContext commandContext, ExternalTaskEntity externalTask, String operationType, List<PropertyChange> propertyChanges)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.CommandisRetryable
 
- 
 
- 
- 
- 
Field Detail- 
externalTaskIdprotected String externalTaskId The corresponding external task id.
 
- 
 - 
Constructor Detail- 
ExternalTaskCmdpublic ExternalTaskCmd(String externalTaskId) 
 
- 
 - 
Method Detail- 
executepublic Void execute(CommandContext commandContext) 
 - 
writeUserOperationLogprotected void writeUserOperationLog(CommandContext commandContext, ExternalTaskEntity externalTask, String operationType, List<PropertyChange> propertyChanges) 
 - 
getUserOperationLogOperationTypeprotected String getUserOperationLogOperationType() 
 - 
getUserOperationLogPropertyChangesprotected List<PropertyChange> getUserOperationLogPropertyChanges(ExternalTaskEntity externalTask) 
 - 
executeprotected abstract void execute(ExternalTaskEntity externalTask) Executes the specific external task commands, which belongs to the current sub class.- Parameters:
- externalTask- the external task which is used for the command execution
 
 - 
validateInputprotected abstract void validateInput() Validates the current input of the command.
 
- 
 
-