public class HandleExternalTaskFailureCmd extends HandleExternalTaskCmd
Modifier and Type | Field and Description |
---|---|
protected String |
errorDetails |
protected String |
errorMessage |
protected Map<String,Object> |
localVariables |
protected int |
retries |
protected long |
retryDuration |
protected Map<String,Object> |
variables |
workerId
externalTaskId
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ExternalTaskEntity externalTask)
Executes the specific external task commands, which belongs to the current sub class.
|
String |
getErrorMessageOnWrongWorkerAccess()
Returns the error message.
|
protected void |
validateInput()
Validates the current input of the command.
|
execute, validateWorkerViolation
getUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRetryable
protected String errorMessage
protected String errorDetails
protected long retryDuration
protected int retries
public HandleExternalTaskFailureCmd(String externalTaskId, String workerId, String errorMessage, String errorDetails, int retries, long retryDuration, Map<String,Object> variables, Map<String,Object> localVariables)
externalTaskId
- workerId
- errorMessage
- errorDetails
- retries
- retryDuration
- public void execute(ExternalTaskEntity externalTask)
ExternalTaskCmd
execute
in class ExternalTaskCmd
externalTask
- the external task which is used for the command executionprotected void validateInput()
HandleExternalTaskCmd
validateInput
in class HandleExternalTaskCmd
public String getErrorMessageOnWrongWorkerAccess()
HandleExternalTaskCmd
getErrorMessageOnWrongWorkerAccess
in class HandleExternalTaskCmd
Copyright © 2022. All rights reserved.