/// <summary> /// 获取流程的第一个可办理节点 /// </summary> /// <returns></returns> public ActivityEntity GetFirstActivity(string processGUID, string version) { var processModel = new ProcessModel(processGUID, version); var firstActivity = processModel.GetFirstActivity(); return(firstActivity); }
/// <summary> /// 获取流程的第一个任务节点信息 /// </summary> /// <param name="processGUID"></param> /// <returns></returns> public static ActivityEntity GetFirstActivity(Guid processGUID) { try { var processModel = new ProcessModel(processGUID); return(processModel.GetFirstActivity()); } catch (System.Exception) { //throw new WfDataException(string.Format("获取流程节点信息失败,详细信息:{0}", ex.Message), ex); throw; } }