execute method
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);
}