/// <summary> /// 获取回退线路 /// </summary> /// <returns>路线</returns> protected Transition GetHistoryTransition(Node entry) { Transition transition = null; Dictionary <String, Object> queryArg = new Dictionary <string, object> { { "InstanceID", entry.InstanceID }, { "Direction", (int)WorkflowOpertaion.Go } }; WorkflowProcess process = ProcessService .Query(queryArg).Where(c => c.Destination == entry.ID) .FirstOrDefault(); if (process != null && entry.NodeType != WorkflowNodeCategory.Start) { transition = TransitionService.Query(entry.InstanceID).FirstOrDefault(e => e.NID == process.TransitionID); } return(transition); }