public abstract class HandleExternalTaskCmd extends ExternalTaskCmd
Modifier and Type | Field and Description |
---|---|
protected String |
workerId
The reported worker id.
|
externalTaskId
Constructor and Description |
---|
HandleExternalTaskCmd(String externalTaskId,
String workerId) |
Modifier and Type | Method and Description |
---|---|
Void |
execute(CommandContext commandContext) |
abstract String |
getErrorMessageOnWrongWorkerAccess()
Returns the error message.
|
protected void |
validateInput()
Validates the current input of the command.
|
protected boolean |
validateWorkerViolation(ExternalTaskEntity externalTask)
Validates the caller's workerId against the workerId of the external task.
|
execute, getUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLog
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRetryable
protected String workerId
public Void execute(CommandContext commandContext)
execute
in interface Command<Void>
execute
in class ExternalTaskCmd
public abstract String getErrorMessageOnWrongWorkerAccess()
protected void validateInput()
validateInput
in class ExternalTaskCmd
protected boolean validateWorkerViolation(ExternalTaskEntity externalTask)
Copyright © 2022. All rights reserved.