Helper class that allows you to execute one or more components.
Description
The Executor class allows you to execute one or more components.
Static methods
execute
Executes multiple components.
To be executed components must implement IExecutable interface.
If they don’t, the call to this method has no effect.
See IExecutable, Parameters
static
execute(correlation_id: Optional[str], components: List[Any], args: Parameters)
- correlation_id: Optional[str] - (optional) transaction id to trace execution through call chain.
- components: List[Any] - a list of components that are to be executed.
- args: Parameters - execution arguments.
execute_one
Executes specific component.
To be executed components must implement IExecutable interface. If they don’t, the call to this method has no effect.
static
execute_one(correlation_id: Optional[str], component: Any, args: Parameters)
- correlation_id: Optional[str] - (optional) transaction id to trace execution through call chain.
- component: Any - the component that is to be executed.
- args: Parameters - execution arguments.