execute method

  1. @override
Future<void> execute(
  1. ExecutionBlockController? executionController
)
override

Implementation

@override
Future<void> execute(ExecutionBlockController? executionController) async {
  var condition =
      NumberSerializable.fromMap(await executionController?.readInput(
    blockInputTargetKey: 'CONDITION',
  ));
  while (condition != 0) {
    for (final blockModel in executionController?.blockModel.blocks ?? []) {
      await executionController?.execute(blockModel: blockModel);
    }
    condition =
        NumberSerializable.fromMap(await executionController?.readInput(
      blockInputTargetKey: 'CONDITION',
    ));
  }
}