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
-
- All Implemented Interfaces:
Command<java.lang.Void>
public class HandleExternalTaskFailureCmd extends HandleExternalTaskCmd
- Author:
- Thorben Lindhauer, Christopher Zell, Askar Akhmerov
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringerrorDetailsprotected java.lang.StringerrorMessageprotected java.util.Map<java.lang.String,java.lang.Object>localVariablesprotected intretriesprotected longretryDurationprotected java.util.Map<java.lang.String,java.lang.Object>variables-
Fields inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
workerId
-
Fields inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
externalTaskId
-
-
Constructor Summary
Constructors Constructor Description HandleExternalTaskFailureCmd(java.lang.String externalTaskId, java.lang.String workerId, java.lang.String errorMessage, java.lang.String errorDetails, int retries, long retryDuration, java.util.Map<java.lang.String,java.lang.Object> variables, java.util.Map<java.lang.String,java.lang.Object> localVariables)Overloaded constructor to support short and full error messages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ExternalTaskEntity externalTask)Executes the specific external task commands, which belongs to the current sub class.java.lang.StringgetErrorMessageOnWrongWorkerAccess()Returns the error message.protected voidvalidateInput()Validates the current input of the command.-
Methods inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
execute, validateWorkerViolation
-
Methods inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
getUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLog
-
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.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
errorMessage
protected java.lang.String errorMessage
-
errorDetails
protected java.lang.String errorDetails
-
retryDuration
protected long retryDuration
-
retries
protected int retries
-
variables
protected java.util.Map<java.lang.String,java.lang.Object> variables
-
localVariables
protected java.util.Map<java.lang.String,java.lang.Object> localVariables
-
-
Constructor Detail
-
HandleExternalTaskFailureCmd
public HandleExternalTaskFailureCmd(java.lang.String externalTaskId, java.lang.String workerId, java.lang.String errorMessage, java.lang.String errorDetails, int retries, long retryDuration, java.util.Map<java.lang.String,java.lang.Object> variables, java.util.Map<java.lang.String,java.lang.Object> localVariables)Overloaded constructor to support short and full error messages- Parameters:
externalTaskId-workerId-errorMessage-errorDetails-retries-retryDuration-
-
-
Method Detail
-
execute
public void execute(ExternalTaskEntity externalTask)
Description copied from class:ExternalTaskCmdExecutes the specific external task commands, which belongs to the current sub class.- Specified by:
executein classExternalTaskCmd- Parameters:
externalTask- the external task which is used for the command execution
-
validateInput
protected void validateInput()
Description copied from class:HandleExternalTaskCmdValidates the current input of the command.- Overrides:
validateInputin classHandleExternalTaskCmd
-
getErrorMessageOnWrongWorkerAccess
public java.lang.String getErrorMessageOnWrongWorkerAccess()
Description 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 classHandleExternalTaskCmd- Returns:
- the specific error message
-
-