Class NeedsActiveTaskCmd<T>

    • Field Summary

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

      Constructors 
      Constructor Description
      NeedsActiveTaskCmd​(java.lang.String taskId)  
    • Field Detail

      • taskId

        protected java.lang.String taskId
    • Constructor Detail

      • NeedsActiveTaskCmd

        public NeedsActiveTaskCmd​(java.lang.String taskId)
    • Method Detail

      • execute

        protected abstract T execute​(CommandContext commandContext,
                                     TaskEntity task)
        Subclasses must implement in this method their normal command logic. The provided task is ensured to be active.
      • getSuspendedTaskException

        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.