Package step.core.execution
Class ExecutionEngine
java.lang.Object
step.core.execution.ExecutionEngine
This class represent the central component for the execution of
Plan
s.
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionEngine.Builder
builder()
Executes anExecution
previously initialized byinitializeExecution(ExecutionParameters)
execute
(ExecutionParameters executionParameterObject) Create a new execution and runs the plan specified within the providedExecutionParameters
Create a new execution and runs the provided plan as part of thisExecution
Create a new execution and runs the provided plan as part of thisExecution
initializeExecution
(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
ExecutionEngine
build
-
getExecutionEngineContext
- Returns:
- the
ExecutionEngineContext
of thisExecutionEngine
-
initializeExecution
Initializes an execution based on the provided parameters. This creates and persists a newExecution
instance. This method call should be followed byexecute(String)
- Parameters:
executionParameters
- theExecutionParameters
of theExecution
to be created- Returns:
- the ID of the new
Execution
-
initializeExecution
Initializes an execution based on the provided parameters. This creates and persists a newExecution
instance. This method call should be followed byexecute(String)
- Parameters:
executionTaskParameters
- theExecutiontTaskParameters
of theExecution
to be created- Returns:
- the ID of the new
Execution
-
execute
Executes anExecution
previously initialized byinitializeExecution(ExecutionParameters)
- Parameters:
executionId
- the ID of theExecution
initialized 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
- thePlan
to be executed- Returns:
-
execute
Create a new execution and runs the provided plan as part of thisExecution
- Parameters:
plan
- thePlan
to 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 anExecutionContext
withoutExecutionEngine
-
newExecutionContext
public ExecutionContext newExecutionContext(String executionId, ExecutionParameters executionParameters, ExecutiontTaskParameters executiontTaskParameters) -
getCurrentExecutions
- Returns:
- the
List
of currently running executions
-