/// <summary> /// 保存工作流 /// </summary> /// <param name="instanceName">流程名称</param> public void SaveWorkflow(string instanceName) { if (!string.IsNullOrEmpty(instanceName)) { this.InstanceName = instanceName; } WorkflowInstance wf = WorkflowEngine.WorkflowService.GetWorkflowInstance(this.BizProcessId); if (wf == null) { WorkflowEngine.WorkflowService.StartProcess(this.ProcessCode, this.CongID, this.BizProcessId, this.ProjectId, this.InstanceName, this.ApprovalNote, this.NodeInstanceList, this.ContextData);//TODO马光辉:最后一个参数传递bizprocesscontext } else { wf.ReStart(this.ApprovalNote, this.NodeInstanceList, this.ContextData); } }