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

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.ExternalTaskCmd
All Implemented Interfaces:
Command<Void>
Direct Known Subclasses:
HandleExternalTaskCmd, SetExternalTaskPriorityCmd, SetExternalTaskRetriesCmd, UnlockExternalTaskCmd

public abstract class ExternalTaskCmd
extends Object
implements Command<Void>

Represents a base class for the external task commands. Contains functionality to get the external task by id and check the authorization for the execution of a command on the requested external task.

Author:
Christopher Zell

Field Summary
protected  String externalTaskId
          The corresponding external task id.
 
Constructor Summary
ExternalTaskCmd(String externalTaskId)
           
 
Method Summary
 Void execute(CommandContext commandContext)
           
protected abstract  void execute(ExternalTaskEntity externalTask)
          Executes the specific external task commands, which belongs to the current sub class.
protected abstract  void validateInput()
          Validates the current input of the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

externalTaskId

protected String externalTaskId
The corresponding external task id.

Constructor Detail

ExternalTaskCmd

public ExternalTaskCmd(String externalTaskId)
Method Detail

execute

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

execute

protected abstract void execute(ExternalTaskEntity externalTask)
Executes the specific external task commands, which belongs to the current sub class.

Parameters:
externalTask - the external task which is used for the command execution

validateInput

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



Copyright © 2017 camunda services GmbH. All rights reserved.