Package org.camunda.bpm.engine.impl.cmd
Class HandleExternalTaskFailureCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
org.camunda.bpm.engine.impl.cmd.HandleExternalTaskFailureCmd
- Author:
- Thorben Lindhauer, Christopher Zell, Askar Akhmerov
- 
Field SummaryFieldsFields inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmdworkerIdFields inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmdexternalTaskId
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute(ExternalTaskEntity externalTask) Executes the specific external task commands, which belongs to the current sub class.Returns the error message.protected voidValidates the current input of the command.Methods inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmdexecute, validateWorkerViolationMethods inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmdgetUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLogMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.interceptor.CommandisRetryable
- 
Field Details- 
errorMessage
- 
errorDetails
- 
retryDurationprotected long retryDuration
- 
retriesprotected int retries
- 
variables
- 
localVariables
 
- 
- 
Constructor Details- 
HandleExternalTaskFailureCmdpublic HandleExternalTaskFailureCmd(String externalTaskId, String workerId, String errorMessage, String errorDetails, int retries, long retryDuration, Map<String, Object> variables, Map<String, Object> localVariables) Overloaded constructor to support short and full error messages- Parameters:
- externalTaskId-
- workerId-
- errorMessage-
- errorDetails-
- retries-
- retryDuration-
 
 
- 
- 
Method Details- 
executeDescription copied from class:ExternalTaskCmdExecutes the specific external task commands, which belongs to the current sub class.- Specified by:
- executein class- ExternalTaskCmd
- Parameters:
- externalTask- the external task which is used for the command execution
 
- 
validateInputprotected void validateInput()Description copied from class:HandleExternalTaskCmdValidates the current input of the command.- Overrides:
- validateInputin class- HandleExternalTaskCmd
 
- 
getErrorMessageOnWrongWorkerAccessDescription copied from class:HandleExternalTaskCmdReturns the error message. Which is used to create an specific message for the BadUserRequestException if an worker has no rights to execute commands of the external task.- Specified by:
- getErrorMessageOnWrongWorkerAccessin class- HandleExternalTaskCmd
- Returns:
- the specific error message
 
 
-