org.camunda.bpm.engine.impl.cmd
Class HandleExternalTaskBpmnErrorCmd
java.lang.Object
org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
org.camunda.bpm.engine.impl.cmd.HandleExternalTaskBpmnErrorCmd
- All Implemented Interfaces:
- Command<Void>
public class HandleExternalTaskBpmnErrorCmd
- extends HandleExternalTaskCmd
Command to handle an external task BPMN error.
- Author:
- Christopher Zell
|
Field Summary |
protected String |
errorCode
The error code of the corresponding bpmn error. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
errorCode
protected String errorCode
- The error code of the corresponding bpmn error.
HandleExternalTaskBpmnErrorCmd
public HandleExternalTaskBpmnErrorCmd(String externalTaskId,
String workerId,
String errorCode)
validateInput
protected void validateInput()
- Description copied from class:
HandleExternalTaskCmd
- Validates the current input of the command.
- Overrides:
validateInput in class HandleExternalTaskCmd
getErrorMessageOnWrongWorkerAccess
public String getErrorMessageOnWrongWorkerAccess()
- Description copied from class:
HandleExternalTaskCmd
- Returns 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:
getErrorMessageOnWrongWorkerAccess in class HandleExternalTaskCmd
- Returns:
- the specific error message
execute
public void execute(ExternalTaskEntity externalTask)
- Description copied from class:
ExternalTaskCmd
- Executes the specific external task commands, which belongs to the current sub class.
- Specified by:
execute in class ExternalTaskCmd
- Parameters:
externalTask - the external task which is used for the command execution
Copyright © 2016 camunda services GmbH. All rights reserved.