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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
      extended by org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
          extended by org.camunda.bpm.engine.impl.cmd.ExtendLockOnExternalTaskCmd
All Implemented Interfaces:
Command<Void>

public class ExtendLockOnExternalTaskCmd
extends HandleExternalTaskCmd

Author:
Anna.Pazola

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
workerId
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
externalTaskId
 
Constructor Summary
ExtendLockOnExternalTaskCmd(String externalTaskId, String workerId, long newLockTime)
           
 
Method Summary
protected  void execute(ExternalTaskEntity externalTask)
          Executes the specific external task commands, which belongs to the current sub class.
 String getErrorMessageOnWrongWorkerAccess()
          Returns the error message.
 
Methods inherited from class org.camunda.bpm.engine.impl.cmd.HandleExternalTaskCmd
execute, validateInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendLockOnExternalTaskCmd

public ExtendLockOnExternalTaskCmd(String externalTaskId,
                                   String workerId,
                                   long newLockTime)
Method Detail

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

protected 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 © 2017 camunda services GmbH. All rights reserved.