Class HandleExternalTaskFailureCmd

  • All Implemented Interfaces:
    Command<java.lang.Void>

    public class HandleExternalTaskFailureCmd
    extends HandleExternalTaskCmd
    Author:
    Thorben Lindhauer, Christopher Zell, Askar Akhmerov
    • Field Detail

      • errorMessage

        protected java.lang.String errorMessage
      • errorDetails

        protected java.lang.String errorDetails
      • retryDuration

        protected long retryDuration
      • retries

        protected int retries
      • 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

      • HandleExternalTaskFailureCmd

        public HandleExternalTaskFailureCmd​(java.lang.String externalTaskId,
                                            java.lang.String workerId,
                                            java.lang.String errorMessage,
                                            java.lang.String errorDetails,
                                            int retries,
                                            long retryDuration,
                                            java.util.Map<java.lang.String,​java.lang.Object> variables,
                                            java.util.Map<java.lang.String,​java.lang.Object> localVariables)
        Overloaded constructor to support short and full error messages
        Parameters:
        externalTaskId -
        workerId -
        errorMessage -
        errorDetails -
        retries -
        retryDuration -
    • Method Detail

      • 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
      • 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
        Returns:
        the specific error message