Class HandleExternalTaskCmd

    • Field Detail

      • workerId

        protected java.lang.String workerId
        The reported worker id.
    • Constructor Detail

      • HandleExternalTaskCmd

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

      • getErrorMessageOnWrongWorkerAccess

        public abstract java.lang.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.