public static void TestProcessScriptGenerator(IServiceResolver sr) { var pr = sr.GetInstance <IProcessPackageRepo>(); var pdef = pr.GetProcessDef("Test2.Compensation.1"); var sw = new StringWriter(); NGinnBPM.Runtime.ProcessDSL.BooProcessScriptGenerator gen = new NGinnBPM.Runtime.ProcessDSL.BooProcessScriptGenerator(sw); gen.GenerateScript(pdef); Console.WriteLine(sw.ToString()); }
public static void TestProcessScriptGenerator(IServiceResolver sr) { var pr = sr.GetInstance<IProcessPackageRepo>(); var pdef = pr.GetProcessDef("Test2.Compensation.1"); var sw = new StringWriter(); NGinnBPM.Runtime.ProcessDSL.BooProcessScriptGenerator gen = new NGinnBPM.Runtime.ProcessDSL.BooProcessScriptGenerator(sw); gen.GenerateScript(pdef); Console.WriteLine(sw.ToString()); }