Package org.camunda.bpm.engine.impl.cmd
Class LockExternalTaskCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
org.camunda.bpm.engine.impl.cmd.LockExternalTaskCmd
-
Field Summary
FieldsFields inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
workerIdFields inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
externalTaskId -
Constructor Summary
ConstructorsConstructorDescriptionLockExternalTaskCmd(String externalTaskId, String workerId, long lockDuration) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(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.protected booleanvalidateWorkerViolation(ExternalTaskEntity externalTask) Validates the caller's workerId against the workerId of the external task.Methods inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
executeMethods inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
getUserOperationLogOperationType, getUserOperationLogPropertyChanges, writeUserOperationLog
-
Field Details
-
lockDuration
protected long lockDuration
-
-
Constructor Details
-
LockExternalTaskCmd
-
-
Method Details
-
execute
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
-
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
-
validateWorkerViolation
Description copied from class:HandleExternalTaskCmdValidates the caller's workerId against the workerId of the external task.- Overrides:
validateWorkerViolationin classHandleExternalTaskCmd
-
validateInput
protected void validateInput()Description copied from class:HandleExternalTaskCmdValidates the current input of the command.- Overrides:
validateInputin classHandleExternalTaskCmd
-