Class ClaimTaskCmd

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String userId  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClaimTaskCmd​(java.lang.String taskId, java.lang.String userId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Void execute​(CommandContext commandContext, TaskEntity task)
      Subclasses must implement in this method their normal command logic.
      protected java.lang.String getSuspendedTaskException()
      Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • userId

        protected java.lang.String userId
    • Constructor Detail

      • ClaimTaskCmd

        public ClaimTaskCmd​(java.lang.String taskId,
                            java.lang.String userId)
    • Method Detail

      • getSuspendedTaskException

        protected java.lang.String getSuspendedTaskException()
        Description copied from class: NeedsActiveTaskCmd
        Subclasses can override this method to provide a customized exception message that will be thrown when the task is suspended.
        Overrides:
        getSuspendedTaskException in class NeedsActiveTaskCmd<java.lang.Void>