Class TaskEvent

java.lang.Object
com.inet.taskplanner.server.api.event.TaskEvent

public class TaskEvent extends Object
Event when a task was added, modified, deleted, activated, deactivated, started or execution finished.
Since:
taskplanner 3.0
  • Constructor Details

    • TaskEvent

      public TaskEvent(@Nonnull @Nonnull TaskEvent.TaskEventType type, @Nonnull @Nonnull com.inet.id.GUID taskID)
      Creates a new TaskEvent instance.
      Parameters:
      type - the type for this event
      taskID - the task the event is for
      Throws:
      IllegalArgumentException - if type or taskID is null.
      Since:
      taskplanner 3.0
    • TaskEvent

      public TaskEvent(@Nonnull @Nonnull TaskEvent.TaskEventType type, @Nonnull @Nonnull com.inet.id.GUID taskID, @Nonnull @Nonnull com.inet.id.GUID executionID)
      Creates a new TaskEvent instance.
      Parameters:
      type - the type for this event
      taskID - the task the event is for
      executionID - ID of the execution the event is about
      Throws:
      IllegalArgumentException - if type or taskID is null.
      Since:
      taskplanner 22.10
    • TaskEvent

      public TaskEvent(int progress, @Nonnull @Nonnull com.inet.id.GUID taskID, @Nonnull @Nonnull com.inet.id.GUID executionID)
      Creates a new TaskEvent instance with a fixed type of TaskEvent.TaskEventType.PROGRESS
      Parameters:
      progress - the progress of the current execution of the task, a value in range of [0..100]
      taskID - the task the event is for
      executionID - ID of the execution the event is about
      Throws:
      IllegalArgumentException - if type or taskID is null.
      Since:
      taskplanner 22.10
  • Method Details