Package step.core.execution
Class ExecutionEngine
java.lang.Object
step.core.execution.ExecutionEngine
This class represent the central component for the execution of
Plans.
It supports local executions as well as central executions within controller instances.
It replaces all the classes implementing the legacy PlanRunner interface-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionEngine.Builderbuilder()Executes anExecutionpreviously initialized byinitializeExecution(ExecutionParameters)execute(ExecutionParameters executionParameterObject) Create a new execution and runs the plan specified within the providedExecutionParametersCreate a new execution and runs the provided plan as part of thisExecutionCreate a new execution and runs the provided plan as part of thisExecutioninitializeExecution(ExecutionParameters executionParameters) Initializes an execution based on the provided parameters.initializeExecution(ExecutiontTaskParameters executionTaskParameters) Initializes an execution based on the provided parameters.newExecutionContext(String executionId, ExecutionParameters executionParameters, ExecutiontTaskParameters executiontTaskParameters)
-
Method Details
-
builder
- Returns:
- a new instance of the
ExecutionEnginebuild
-
getExecutionEngineContext
- Returns:
- the
ExecutionEngineContextof thisExecutionEngine
-
initializeExecution
Initializes an execution based on the provided parameters. This creates and persists a newExecutioninstance. This method call should be followed byexecute(String)- Parameters:
executionParameters- theExecutionParametersof theExecutionto be created- Returns:
- the ID of the new
Execution
-
initializeExecution
Initializes an execution based on the provided parameters. This creates and persists a newExecutioninstance. This method call should be followed byexecute(String)- Parameters:
executionTaskParameters- theExecutiontTaskParametersof theExecutionto be created- Returns:
- the ID of the new
Execution
-
execute
Executes anExecutionpreviously initialized byinitializeExecution(ExecutionParameters)- Parameters:
executionId- the ID of theExecutioninitialized and returned byinitializeExecution(ExecutionParameters)- Returns:
- the result of the execution
-
execute
Create a new execution and runs the provided plan as part of thisExecution- Parameters:
plan- thePlanto be executed- Returns:
-
execute
Create a new execution and runs the provided plan as part of thisExecution- Parameters:
plan- thePlanto be executedexecutionParameters- the map of execution parameters. These parameters are equivalent to the parameters selected on the execution screen of the STEP UI- Returns:
-
execute
Create a new execution and runs the plan specified within the providedExecutionParameters- Parameters:
executionParameterObject- the- Returns:
-
newExecutionContext
- Returns:
- a new
ExecutionContext. Warning: This method should only be used for testing purposes i.e. for tests requiring anExecutionContextwithoutExecutionEngine
-
newExecutionContext
public ExecutionContext newExecutionContext(String executionId, ExecutionParameters executionParameters, ExecutiontTaskParameters executiontTaskParameters) -
getCurrentExecutions
- Returns:
- the
Listof currently running executions
-