Exemple #1
0
 static int Main(string[] args)
 {
     try
     {
         String worflowPath = args[0];
         log.InfoFormat("FlowEngine loading start [{0}]", worflowPath);
         WorkflowExecutor executor = new WorkflowExecutor(worflowPath);
         executor.setLibPath(AppSettings.get("LibPath"));
         executor.InitializeWorkflow();
         executor.RunWorkflow();
         log.InfoFormat("FlowEngine execution finished [{0}]", worflowPath);
     }
     catch (Exception ex)
     {
         log.Error(ex.Message);
         return((int)ExitCode.ERROR);
     }
     return((int)ExitCode.SUCCESS);
 }