GetActivityInstances() private method

获取活动节点实例
private GetActivityInstances ( int processInstanceID, IDbSession session ) : IList
processInstanceID int
session IDbSession
return IList
 /// <summary>
 /// 获取一个流程实例下的所有活动实例
 /// </summary>
 /// <param name="processInstanceID"></param>
 /// <returns></returns>
 public IList<ActivityInstanceEntity> GetActivityInstances(int processInstanceID)
 {
     var aim = new ActivityInstanceManager();
     var session = SessionFactory.CreateSession();
     try
     {
         return aim.GetActivityInstances(processInstanceID, session);
     }
     catch
     {
         throw;
     }
     finally
     {
         session.Dispose();
     }
 }