示例#1
0
        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());
        }
示例#2
0
 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());
 }