Executor

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(context: Optional[IContext], components: List[Any], args: Parameters)

  • context: IContext - (optional) a context to trace execution through a 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(context: Optional[IContext], component: Any, args: Parameters)

  • context: IContext - (optional) a context to trace execution through a call chain.
  • component: Any - the component that is to be executed.
  • args: Parameters - execution arguments.

See also