System.Workflow.Activities.Rules 命名空间

包含一组类,这些类定义了组成规则的条件和操作。 Contains a set of classes that define the conditions and actions that form a rule.

AddedConditionAction

表示动态更新过程中向工作流中添加 RuleConditionRepresents the addition of a RuleCondition to a workflow during dynamic update. 此类不能被继承。This class cannot be inherited.

AddedRuleSetAction

表示在动态更新过程中添加 RuleSetRepresents the addition of a RuleSet during dynamic update. 此类不能被继承。This class cannot be inherited.

RemovedConditionAction

表示动态更新过程中从工作流中移除 RuleConditionRepresents the removal of a RuleCondition from a workflow during dynamic update. 此类不能被继承。This class cannot be inherited.

RemovedRuleSetAction

表示在动态更新过程中 RuleSet 的移除。Represents the removal of a RuleSet during dynamic update. 此类不能被继承。This class cannot be inherited.

Rule

定义具有要执行的一组相关操作的条件。Defines a condition with an associated set of actions to perform.

RuleAction

表示一个抽象类,该抽象类定义关联的 Condition 的计算结果为 true(对于 ThenActions)或 false(对于 ElseActions)时要执行的操作。Represents an abstract class that defines an action to be executed if the associated Condition evaluates to true, for ThenActions, or false, for ElseActions. 必须继承此类。This class must be inherited.

RuleActionTrackingEvent

包含已计算的规则的名称、实例 ID 和条件结果。Contains the name, instance ID, and condition result of a rule that has been evaluated.

RuleAnalysis

存储由条件读取的或由操作写入的字段和属性。Stores the fields and properties read by a condition or written to by an action.

RuleAttribute

表示自定义 Rule 属性的基类。Represents the base class for custom Rule attributes.

RuleCondition

RuleExpressionCondition 和用户创建的任何自定义条件的基类型。Base type for RuleExpressionCondition and any custom conditions created by users.

RuleConditionChangeAction

表示必须从其派生对 RuleCondition 所进行更改的所有动态更新通知的抽象基类。Represents an abstract base class from which all dynamic update notifications of changes to RuleConditions must be derived.

RuleConditionCollection

包含在工作流上定义的 RuleCondition 类的集合。Contains a collection of RuleCondition classes defined on the workflow. 此类不能被继承。This class cannot be inherited.

RuleConditionReference

表示条件集合中的 RuleCondition,并且使您能够以编程方式计算条件。Represents a RuleCondition in the conditions collection and enables you to programmatically evaluate the condition.

RuleDefinitions

表示 .rules 文件的根并包含与工作流相关联的所有 RuleSetsRuleConditionRepresents the root of the .rules files and contains all the RuleSets and RuleConditions associated with a workflow. 此类不能被继承。This class cannot be inherited.

RuleEngine

用于执行 RuleSet 计算。Used to perform RuleSet evaluation.

RuleEvaluationException

表示由规则计算问题引发的所有异常的基类。Represents the base class for all exceptions caused by rule evaluation issues.

RuleEvaluationIncompatibleTypesException

计算规则时试图对不兼容的操作数应用某一运算符时引发的异常。The exception that is thrown when attempting to apply an operator to incompatible operands when you evaluate a rule.

RuleException

表示由于计算或验证规则而引发的所有异常的基类。Represents the base class for all exceptions caused by evaluation or validation of rules.

RuleExecution

执行 RuleConditionRuleAction 类时存储状态信息。Stores state information while executing RuleCondition or RuleAction classes.

RuleExpressionCondition

定义 RuleConditionReference 后面的条件定义。Defines the condition definition behind a RuleConditionReference. 此类不能被继承。This class cannot be inherited.

RuleExpressionInfo

Validate(RuleValidation, Boolean) 表达式的 IRuleExpression 方法返回的此类的实例。An instance of this class is returned by the Validate(RuleValidation, Boolean) method of an IRuleExpression expression.

RuleExpressionResult

作为表示基于 IRuleExpression 接口的自定义表达式结果的类的基础的抽象类。Abstract class that is the base for classes representing the result of custom expressions based on the IRuleExpression interface.

RuleExpressionWalker

将表达式中的当前行为传播到子节点。Propagates the current behavior in the expression to child nodes. 此类不能被继承。This class cannot be inherited.

RuleHaltAction

导致 RuleSet 停止执行并使控制重新返回到调用方法。Causes the RuleSet to stop executing and returns control back to the calling method.

RuleInvokeAttribute

指示由条件调用方法。Indicates that a method is invoked by a condition. 此类不能被继承。This class cannot be inherited.

RuleLiteralResult

表示使用 IRuleExpression 写入的自定义表达式的文本结果。Represents the literal result of a custom expression written using IRuleExpression.

RulePathQualifier

生成字段或属性的路径。Builds the path of a field or property.

RuleReadAttribute

指示由 Rule 读取属性。Indicates that a property is read by a Rule. 此类不能被继承。This class cannot be inherited.

RuleReadWriteAttribute

表示 RuleReadAttributeRuleWriteAttribute 类的基类。Represents the base class for the RuleReadAttribute and RuleWriteAttribute classes.

RuleSet

包含 Rule 类和这些规则的正向链接执行语义的集合。Contains a collection of Rule classes along with the semantics for forward-chaining execution of those rules. 可以直接用代码或使用 RuleSet 活动执行 PolicyActivityA RuleSet can be executed directly in code or using the PolicyActivity activity.

RuleSetChangeAction

表示必须从其派生对 RuleSet 所做更改的所有动态更新通知的抽象基类。Represents an abstract base class from which all dynamic update notifications of changes to a RuleSet must be derived. 此类不能被继承。This class cannot be inherited.

RuleSetCollection

包含在工作流中定义的 RuleSet 类的集合。Contains a collection of RuleSet classes defined in a workflow.

RuleSetReference

保存工作流上 RuleSet 中的 RuleSetCollection 的名称。Holds the name of a RuleSet in the RuleSetCollection on the workflow. 此类不能被继承。This class cannot be inherited.

RuleSetValidationException

表示由于无法验证规则集而无法继续处理时引发的异常。Represents the exception thrown when processing cannot continue because a rule set cannot be validated.

RuleStatementAction

指定要更新的属性或字段或要使用 CodeDom 类型运行的方法。Specifies a property or field to update or a method to run using the CodeDom types.

RuleUpdateAction

指示规则正在更新变量,以便重新计算受影响的规则。Indicates that a rule is updating a variable, in order to cause reevaluation of affected rules.

RuleValidation

验证表达式条件。Validates expression conditions.

RuleWriteAttribute

指示由应用此属性 (attribute) 的方法或属性 (property) 写入属性 (property) 或字段。Indicates that a property or field is written by the method or property that this attribute is applied to. 规则引擎使用此信息确定规则之间的依赖性。This information is used by the rules engine to determine dependencies between rules. 此类不能被继承。This class cannot be inherited.

UpdatedConditionAction

表示对用于动态更新的 RuleSet 进行的更改。Represents the change to a RuleSet for dynamic updates. 此类不能被继承。This class cannot be inherited.

UpdatedRuleSetAction

表示对用于动态更新的 RuleSet 进行的更改。Represents the change to a RuleSet for dynamic updates. 此类不能被继承。This class cannot be inherited.

接口

IRuleExpression

表示必须从中派生自定义表达式编写器以编写自定义表达式的基类。Represents the base class from which custom expression writers must derive to write custom expressions.

枚举

RuleAttributeTarget

指定 RuleReadAttributeRuleWriteAttribute 中的路径是否适用于方法参数或 thisSpecifies whether the path in a RuleReadAttribute or RuleWriteAttribute is for a method parameter, or this.

RuleChainingBehavior

指定 RuleSet 的正向链接行为。Specifies the forward chaining behavior of the RuleSet.

RuleReevaluationBehavior

指定是否可以重新计算 RuleSpecifies whether a Rule can be reevaluated.