Class CannotAddTaskException

  • All Implemented Interfaces:
    Serializable

    public class CannotAddTaskException
    extends org.kie.internal.task.exception.TaskException
    Exception thrown from the TaskServiceSession when there is a problem adding task. This exception is specifically thrown when custom logic in rules has not allowed the Task to be added.
    See Also:
    org.jbpm.services.task.service.TaskServiceSession#addTask(org.jbpm.services.task.Task, ContentDataImpl), Serialized Form
    • Constructor Detail

      • CannotAddTaskException

        public CannotAddTaskException​(String message)
      • CannotAddTaskException

        public CannotAddTaskException​(String message,
                                      Throwable cause)