Class HandleExternalTaskCmd

    • Field Detail

      • workerId

        protected String workerId
        The reported worker id.
    • Constructor Detail

      • HandleExternalTaskCmd

        public HandleExternalTaskCmd​(String externalTaskId,
                                     String workerId)
    • Method Detail

      • 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
      • validateWorkerViolation

        protected boolean validateWorkerViolation​(ExternalTaskEntity externalTask)
        Validates the caller's workerId against the workerId of the external task.