execute static method

Future<List> execute(
  1. IContext? context,
  2. List? components,
  3. Parameters args
)

Executes multiple components.

To be executed components must implement IExecutable interface. If they don't the call to this method has no effect.

  • context (optional) execution context to trace execution through call chain.
  • components a list of components that are to be executed.
  • args execution arguments. Return Future that receives execution result or error.

See executeOne See IExecutable See Parameters

Implementation

static Future<List> execute(
    IContext? context, List? components, Parameters args) async {
  var results = [];

  if (components == null) return results;

  for (var component in components) {
    var result = await executeOne(context, component, args);
    results.add(result);
  }

  return results;
}