示例#1
0
 private Workflow LoadWorkflowFromDatabase(Db.Workflow workflow)
 {
     try
     {
         var wf = new Workflow(
             this
             , 1
             , new Dictionary <Guid, Workflow>()
             , workflow.GetDbId()
             , workflow.Xml
             , TempFolder
             , WorkflowsTempFolder
             , TasksFolder
             , ApprovalFolder
             , XsdPath
             , Database
             , GlobalVariables);
         Logger.InfoFormat("Workflow loaded: {0}", wf);
         return(wf);
     }
     catch (Exception e)
     {
         Logger.ErrorFormat("An error occured while loading the workflow : {0} Please check the workflow configuration. Error: {1}", workflow.GetDbId(), e.Message);
         return(null);
     }
 }
示例#2
0
 private Workflow LoadWorkflowFromDatabase(Db.Workflow workflow)
 {
     try
     {
         var wf = new Workflow(
             workflow.GetDbId()
             , workflow.Xml
             , TempFolder
             , WorkflowsTempFolder
             , TasksFolder
             , ApprovalFolder
             , XsdPath
             , Database
             , GlobalVariables
             , WorkiomAuthUrl
             , CreateRecordUrl
             , UpdateRecordUrl
             , NotifyUserUrl);
         Logger.InfoFormat("Workflow loaded: {0}", wf);
         return(wf);
     }
     catch (Exception e)
     {
         Logger.ErrorFormat("An error occured while loading the workflow : {0} Please check the workflow configuration. Error: {1}", workflow.GetDbId(), e.Message);
         return(null);
     }
 }