Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
 public abstract void UpdateWorkflow(string dbId, Workflow workflow);
Exemplo n.º 4
0
 public abstract string InsertWorkflow(Workflow workflow);