org.camunda.bpm.engine.impl.cmd
Class HandleExternalTaskCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
      extended by org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
All Implemented Interfaces:
Command<Void>
Direct Known Subclasses:
CompleteExternalTaskCmd, ExtendLockOnExternalTaskCmd, HandleExternalTaskBpmnErrorCmd, HandleExternalTaskFailureCmd

public abstract class HandleExternalTaskCmd
extends ExternalTaskCmd

Represents an abstract class for the handle of external task commands.

Author:
Christopher Zell

Field Summary
protected  String workerId
          The reported worker id.
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
externalTaskId
 
Constructor Summary
HandleExternalTaskCmd(String externalTaskId, String workerId)
           
 
Method Summary
 Void execute(CommandContext commandContext)
           
abstract  String getErrorMessageOnWrongWorkerAccess()
          Returns the error message.
protected  void validateInput()
          Validates the current input of the command.
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workerId

protected String workerId
The reported worker id.

Constructor Detail

HandleExternalTaskCmd

public HandleExternalTaskCmd(String externalTaskId,
                             String workerId)
Method Detail

execute

public Void execute(CommandContext commandContext)
Specified by:
execute in interface Command<Void>
Overrides:
execute in class ExternalTaskCmd

getErrorMessageOnWrongWorkerAccess

public abstract String getErrorMessageOnWrongWorkerAccess()
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.

Returns:
the specific error message

validateInput

protected void validateInput()
Validates the current input of the command.

Specified by:
validateInput in class ExternalTaskCmd


Copyright © 2017 camunda services GmbH. All rights reserved.