public void AddProcessInstance() { string name = "请假" + DateTime.Now.ToString("yy-mm-dd_HH_mm_ss"); string str = "{\"Code\":\"请病假\",\"CustomName\":\"" + name + "\",\"wfLevel1\":\"1\",\"wfLevel2\":\"2\",\"wfLevel3\":\"3\",\"Description\":\" \",\"EnabledMark\":1,\"wfLevel\":\"2\"}"; string frmData = "{\"4fcd4c6f-eb6b-6a6d-eb4e-7948763c5bba\":\"\",\"88061dda-642e-bcdb-909b-cea2bbe5ad69\":\" \"}"; _runApp.CreateInstance(Guid.Empty, Guid.Parse("5f0ca3df-390a-4bd7-aecb-5304bf2d191c"), str.ToObject <WFProcessInstance>(), frmData); }
public string CreateProcess(Guid wfSchemeInfoId, string wfProcessInstanceJson, string frmData) { WFProcessInstance wfProcessInstanceEntity = wfProcessInstanceJson.ToObject <WFProcessInstance>(); wfProcessInstanceEntity.Id = Guid.Empty; _app.CreateInstance(Guid.NewGuid(), wfSchemeInfoId, wfProcessInstanceEntity, frmData); return(Result.ToJson()); }