Class CompleteExternalTaskCmd

  • All Implemented Interfaces:

    public class CompleteExternalTaskCmd
    extends HandleExternalTaskCmd
    Thorben Lindhauer, Christopher Zell
    • Field Detail

      • variables

        protected java.util.Map<java.lang.String,​java.lang.Object> variables
      • localVariables

        protected java.util.Map<java.lang.String,​java.lang.Object> localVariables
    • Constructor Detail

      • CompleteExternalTaskCmd

        public CompleteExternalTaskCmd​(java.lang.String externalTaskId,
                                       java.lang.String workerId,
                                       java.util.Map<java.lang.String,​java.lang.Object> variables,
                                       java.util.Map<java.lang.String,​java.lang.Object> localVariables)
    • Method Detail

      • getErrorMessageOnWrongWorkerAccess

        public java.lang.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
        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
        externalTask - the external task which is used for the command execution