Class TaskExecutionContext

java.lang.Object
com.inet.taskplanner.server.api.TaskExecutionContext

public final class TaskExecutionContext extends Object
Accesses runtime information for the current task execution.

These values are only meaningful while code runs inside an active TaskPlanner job or result-action execution.

Since:
taskplanner 26.10
  • Method Details

    • hasCurrentExecutionContext

      public static boolean hasCurrentExecutionContext()
      Returns whether there is currently an active task execution context for this thread/session.
      Returns:
      true if execution context is available, otherwise false
      Since:
      taskplanner 26.10
    • isCurrentExecutionManual

      public static boolean isCurrentExecutionManual()
      Returns whether the current task execution was started manually (for example via the web GUI or API execution call).
      Returns:
      true if manual execution, otherwise false
      Since:
      taskplanner 26.10