Exemplo n.º 1
0
        /// <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();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 获取活动实例列表
        /// </summary>
        /// <param name="processInstanceID">流程实例ID</param>
        /// <returns>活动实例列表</returns>
        public IList <ActivityInstanceEntity> GetActivityInstances(int processInstanceID)
        {
            var aim = new ActivityInstanceManager();

            return(aim.GetActivityInstances(processInstanceID));
        }