Class TaskExecutionContext
java.lang.Object
com.inet.taskplanner.server.api.TaskExecutionContext
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 Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether there is currently an active task execution context for this thread/session.static booleanReturns whether the current task execution was started manually (for example via the web GUI or API execution call).
-
Method Details
-
hasCurrentExecutionContext
public static boolean hasCurrentExecutionContext()Returns whether there is currently an active task execution context for this thread/session.- Returns:
trueif execution context is available, otherwisefalse- 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:
trueif manual execution, otherwisefalse- Since:
- taskplanner 26.10
-