diff --git a/OpenAuth.App/WFRuntimeService.cs b/OpenAuth.App/WFRuntimeService.cs index 9b176c2f..d12e9ae8 100644 --- a/OpenAuth.App/WFRuntimeService.cs +++ b/OpenAuth.App/WFRuntimeService.cs @@ -19,9 +19,10 @@ namespace OpenAuth.App private IUnitWork _unitWork; private WFProcessInstanceService wfProcessInstanceService; - public WFRuntimeService(IUnitWork unitWork) + public WFRuntimeService(IUnitWork unitWork, WFProcessInstanceService service) { _unitWork = unitWork; + wfProcessInstanceService = service; } private string delegateUserList = ""; diff --git a/OpenAuth.Mvc/Areas/FlowManage/Controllers/FlowLaunchController.cs b/OpenAuth.Mvc/Areas/FlowManage/Controllers/FlowLaunchController.cs index 753f3408..b494398b 100644 --- a/OpenAuth.Mvc/Areas/FlowManage/Controllers/FlowLaunchController.cs +++ b/OpenAuth.Mvc/Areas/FlowManage/Controllers/FlowLaunchController.cs @@ -64,6 +64,7 @@ namespace OpenAuth.Mvc.Areas.FlowManage.Controllers public ActionResult CreateProcess(Guid wfSchemeInfoId, string wfProcessInstanceJson, string frmData) { WFProcessInstance wfProcessInstanceEntity = wfProcessInstanceJson.ToObject(); + wfProcessInstanceEntity.Id = Guid.Empty; string text = "创建成功"; if (wfProcessInstanceEntity.EnabledMark == 1)//发起流程 {