Package step.core.plugins
Interface ExecutionCallbacks
- All Known Subinterfaces:
ExecutionEnginePlugin
- All Known Implementing Classes:
AbstractExecutionEnginePlugin
,BaseArtefactPlugin
,BasePlugin
,CompositeFunctionTypePlugin
,FunctionPlugin
,GeneralScriptFunctionPlugin
,LocalCompositeFunctionPlugin
,LocalFunctionPlugin
,LocalRepositoryPlugin
,MeasurementPlugin
,ParameterManagerPlugin
,QuotaManagerPlugin
,ThreadManagerPlugin
,ThreadPoolPlugin
,TimeSeriesExecutionPlugin
,ViewPlugin
public interface ExecutionCallbacks
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterExecutionEnd
(ExecutionContext context) void
afterFunctionExecution
(ExecutionContext context, ReportNode node, Function function, step.functions.io.Output<jakarta.json.JsonObject> output) This hook is called immediately after aFunction
is executed in CallFunctionHandler.void
afterReportNodeExecution
(ExecutionContext context, ReportNode node) void
afterReportNodeSkeletonCreation
(ExecutionContext context, ReportNode node) void
associateThread
(ExecutionContext context, Thread thread) void
associateThread
(ExecutionContext context, Thread thread, long parentThreadId) void
beforeExecutionEnd
(ExecutionContext context) void
beforeFunctionExecution
(ExecutionContext context, ReportNode node, Function function) void
beforePlanImport
(ExecutionContext context) void
beforeReportNodeExecution
(ExecutionContext context, ReportNode node) void
executionStart
(ExecutionContext context) void
onErrorContributionRemoval
(ExecutionContext context, ReportNode node) void
onReportNodeRemoval
(ExecutionContext context, ReportNode node) void
unassociateThread
(ExecutionContext context, Thread thread)
-
Method Details
-
beforeFunctionExecution
This hook is called before aFunction
is executed in CallFunctionHandler just after theFunction
has been resolved The hook is also called in simulation mode- Parameters:
context
- theExecutionContext
function
- the resolvedFunction
that will be executed
-
afterFunctionExecution
void afterFunctionExecution(ExecutionContext context, ReportNode node, Function function, step.functions.io.Output<jakarta.json.JsonObject> output) This hook is called immediately after aFunction
is executed in CallFunctionHandler. TheReportNode
provided as argument is therefore not reflecting the final status. If you need the final status after CallFunction execution use the hookafterReportNodeExecution(ExecutionContext, ReportNode)
instead. The hook is also called in simulation mode.- Parameters:
context
- theExecutionContext
node
-function
- theFunction
that has been executedoutput
- the resultOutput
of the execution
-
afterReportNodeSkeletonCreation
-
beforeReportNodeExecution
-
afterReportNodeExecution
-
onReportNodeRemoval
-
onErrorContributionRemoval
-
associateThread
-
associateThread
-
unassociateThread
-
beforePlanImport
-
executionStart
-
beforeExecutionEnd
-
afterExecutionEnd
-