/// <summary>
        /// 创建活动节点执行者列表
        /// </summary>
        /// <param name="userID">用户ID</param>
        /// <param name="userName">用户名称</param>
        /// <returns></returns>
        internal static PerformerList CreatePerformerList(string userID, string userName)
        {
            var performerList = new PerformerList();

            performerList.Add(new Performer(userID, userName));

            return(performerList);
        }
        /// <summary>
        /// 创建活动节点执行者列表
        /// </summary>
        /// <param name="roleList">角色列表</param>
        /// <returns></returns>
        internal static PerformerList CreatePerformerList(IList <Role> roleList)
        {
            var roleIDs         = roleList.Select(x => x.ID).ToArray();
            var resourceService = ResourceServiceFactory.Create();
            var userList        = resourceService.GetUserListByRoles(roleIDs);
            var performerList   = new PerformerList();

            foreach (var user in userList)
            {
                var performer = new Performer(user.UserID.ToString(), user.UserName);

                performerList.Add(performer);
            }
            return(performerList);
        }
        /// <summary>
        /// 创建下一步活动执行者列表
        /// </summary>
        /// <param name="activityGUID">活动节点GUID</param>
        /// <param name="performerList">执行者列表</param>
        /// <returns>步骤执行者列表</returns>
        internal static IDictionary <string, PerformerList> CreateNextActivityPerformers(string activityGUID,
                                                                                         PerformerList performerList)
        {
            var nextActivityPerformers = new Dictionary <string, PerformerList>();

            nextActivityPerformers.Add(activityGUID, performerList);

            return(nextActivityPerformers);
        }