execute method

void execute(
  1. Trigger trigger,
  2. dynamic val
)

Implementation

void execute(final Trigger trigger, final dynamic val) {
  final workflow = workflows.firstWhereOrNull((element) =>
      (element.nodeIdenfier == nodeName || element.nodeIdenfier == nodeID) &&
      element.trigger == trigger);
  if (workflow == null) return;
  workflow.method.call(val);
}