合并类型,获取下一步节点列表
Inheritance: NextActivityScheduleBase
 /// <summary>
 /// 创建ActivitySchedule
 /// </summary>
 /// <param name="splitJoinType"></param>
 /// <returns></returns>
 internal static NextActivityScheduleBase CreateActivitySchedule(ProcessModel processModel,
     GatewaySplitJoinTypeEnum splitJoinType)
 {
     NextActivityScheduleBase activitySchedule = null;
     if (splitJoinType == GatewaySplitJoinTypeEnum.Split)
     {
         activitySchedule = new NextActivityScheduleSplit(processModel);
     }
     else if (splitJoinType == GatewaySplitJoinTypeEnum.Join)
     {
         activitySchedule = new NextActivityScheduleJoin(processModel);
     }
     else
     {
         throw new Exception("未知的splitJoinType!");
     }
     return activitySchedule;
 }
Example #2
0
        /// <summary>
        /// 创建ActivitySchedule
        /// </summary>
        /// <param name="splitJoinType"></param>
        /// <returns></returns>
        internal static NextActivityScheduleBase CreateActivitySchedule(ProcessModel processModel,
                                                                        GatewaySplitJoinTypeEnum splitJoinType)
        {
            NextActivityScheduleBase activitySchedule = null;

            if (splitJoinType == GatewaySplitJoinTypeEnum.Split)
            {
                activitySchedule = new NextActivityScheduleSplit(processModel);
            }
            else if (splitJoinType == GatewaySplitJoinTypeEnum.Join)
            {
                activitySchedule = new NextActivityScheduleJoin(processModel);
            }
            else
            {
                throw new Exception("未知的splitJoinType!");
            }
            return(activitySchedule);
        }