Class HandleExternalTaskBpmnErrorCmd

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

    public class HandleExternalTaskBpmnErrorCmd
    extends HandleExternalTaskCmd
    Command to handle an external task BPMN error.
    Author:
    Christopher Zell
    • Field Detail

      • errorCode

        protected java.lang.String errorCode
        The error code of the corresponding bpmn error.
      • errorMessage

        protected java.lang.String errorMessage
      • variables

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

      • HandleExternalTaskBpmnErrorCmd

        public HandleExternalTaskBpmnErrorCmd​(java.lang.String externalTaskId,
                                              java.lang.String workerId,
                                              java.lang.String errorCode)
      • HandleExternalTaskBpmnErrorCmd

        public HandleExternalTaskBpmnErrorCmd​(java.lang.String externalTaskId,
                                              java.lang.String workerId,
                                              java.lang.String errorCode,
                                              java.lang.String errorMessage,
                                              java.util.Map<java.lang.String,​java.lang.Object> variables)
    • 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
        Returns:
        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
        Parameters:
        externalTask - the external task which is used for the command execution