Exemple #1
0
        public WfAddApproverExecutor(IWfActivity operatorActivity, IWfActivity targetActivity, WfAssigneeCollection assignees)
            : base(operatorActivity, targetActivity, WfControlOperationType.AddApprover)
        {
            assignees.NullCheck("assingees");

            this.Assignees.CopyFrom(assignees);
        }
        public WfConsignExecutor(IWfActivity operatorActivity,
                                 IWfActivity targetActivity,
                                 WfAssigneeCollection assignees,
                                 IEnumerable <IUser> consignUsers,
                                 IEnumerable <IUser> circulateUsers,
                                 WfBranchProcessBlockingType blockingType,
                                 WfBranchProcessExecuteSequence sequence)
            : base(operatorActivity, targetActivity, WfControlOperationType.Consign)
        {
            assignees.NullCheck("assignees");
            consignUsers.NullCheck("users");

            (consignUsers.Count() > 0).FalseThrow <WfRuntimeException>("参与会签的用户数必须大于零");

            this.Assignees.CopyFrom(assignees);
            this.ConsignUsers   = consignUsers;
            this.CirculateUsers = circulateUsers;
            this.BlockingType   = blockingType;
            this.Sequence       = sequence;
        }