private static void UpdateEntity(CWorkFlow wf, WE_STATUS status) { try { WorkFlow_Entity wfe = new WorkFlow_Entity { WE_Id = wf.EntityID, WE_Status = status }; wfe.WE_Binary = Encoding.Default.GetBytes(wf.WriteToXmlNode().OuterXml); WorkFlows wfs = new WorkFlows(); if (!wfs.SaveWorkFlowEntity(wfe)) { throw new Exception("Save WorkFlow Entity failed!"); } } catch (Exception e) { return; } }
//更新工作流实体,(修改数据相应的项) public void UpdateEntity(WE_STATUS status) { try { WorkFlow_Entity wfe = new WorkFlow_Entity { WE_Id = m_entityID, WE_Status = status, Last_Trans_Time = this.Last_TransTime }; wfe.WE_Binary = Encoding.Default.GetBytes(WriteToXmlNode().OuterXml); WorkFlows wfs = new WorkFlows(); if (!wfs.SaveWorkFlowEntity(wfe)) throw new Exception("Save WorkFlow Entity failed!"); } catch(Exception e) { return; } }