/// <summary> /// Constructs a flow instance from a name and a flow definition string /// </summary> /// <param name="name"></param> /// <param name="definition"></param> public FlowInstance(FlowDefinition def, LogEvent log) : this(log) { OnLog += log; Name = def.Name; FlowDefinition = def.ToJson(); Flow = def.GetFlow(); AppId = def.AppId; Stitch(); }