Пример #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="flowNodeIndex">所在流程图节点的索引</param>
        /// <param name="activityName">节点名称</param>
        /// <param name="actions">可执行的操作</param>
        /// <param name="slotCount">默认为-1,将忽略该设置</param>
        /// <param name="slotMode">slot分发模式</param>
        /// <param name="startRule">不设置则留空</param>
        /// <param name="actionerRule"></param>
        /// <param name="finishRule">不设置则留空</param>
        /// <param name="escalationRule">不设置则留空</param>
        /// <param name="isChildOfActivity">是否是子节点</param>
        public HumanSetting(int flowNodeIndex
                            , string activityName
                            , string[] actions
                            , int slotCount
                            , SlotDistributionMode slotMode
                            , string url
                            , StartRule startRule
                            , HumanActionerRule actionerRule
                            , FinishRule finishRule
                            , HumanEscalationRule escalationRule
                            , bool isChildOfActivity)
            : base(flowNodeIndex
                   , activityName
                   , startRule
                   , finishRule
                   , isChildOfActivity)
        {
            this.Actions        = actions;
            this.SlotCount      = slotCount;
            this.SlotMode       = slotMode;
            this.Url            = url;
            this.ActionerRule   = actionerRule;
            this.EscalationRule = escalationRule;

            this.Validate();
        }
Пример #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <param name="flowNodeIndex">所在流程图节点的索引</param>
        /// <param name="activityName">节点名称</param>
        /// <param name="actions">可执行的操作</param>
        /// <param name="slotCount">默认为-1,将忽略该设置</param>
        /// <param name="slotMode">slot分发模式</param>
        /// <param name="startRule">不设置则留空</param>
        /// <param name="actionerRule"></param>
        /// <param name="finishRule">不设置则留空</param>
        /// <param name="escalationRule">不设置则留空</param>
        /// <param name="isChildOfActivity">是否是子节点</param>
        public HumanSetting(int flowNodeIndex
            , string activityName
            , string[] actions
            , int slotCount
            , SlotDistributionMode slotMode
            , string url
            , StartRule startRule
            , HumanActionerRule actionerRule
            , FinishRule finishRule
            , HumanEscalationRule escalationRule
            , bool isChildOfActivity)
            : base(flowNodeIndex
            , activityName
            , startRule
            , finishRule
            , isChildOfActivity)
        {
            this.Actions = actions;
            this.SlotCount = slotCount;
            this.SlotMode = slotMode;
            this.Url = url;
            this.ActionerRule = actionerRule;
            this.EscalationRule = escalationRule;

            this.Validate();
        }