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 |
workerIdexternalTaskId| 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, validateWorkerViolationgetUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLogclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRetryableprotected 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)
ExternalTaskCmdexecute in class ExternalTaskCmdexternalTask - the external task which is used for the command executionprotected void validateInput()
HandleExternalTaskCmdvalidateInput in class HandleExternalTaskCmdpublic String getErrorMessageOnWrongWorkerAccess()
HandleExternalTaskCmdgetErrorMessageOnWrongWorkerAccess in class HandleExternalTaskCmdCopyright © 2022. All rights reserved.