Home Search

DriveWorks Pro 21
Evaluate Rule Value

Send Feedback

Evaluate Rule Value

The Evaluate Rule Value task will evaluate the given rule and store the result in the specified Constant.

Properties

Property NameDescription
Constant NameThe name of the Constant to store the final result in.
Rule Text

The value of this property will be evaluated as a rule, and the result stored in the specified Constant.

If this property is made dynamic then the result of the rule for this property should be another rule which will in turn be evaluated.
TitleChanges the Title (not the name) of the task.

Outputs

This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.

Outputs are only available within Specification Macros. Currently Outputs are not available Specification Flow.

Data Outputs

Output NameDescription
Evaluated ValueThe result of the rule being evaluated.

Status Outputs

This task supports Status Outputs. These can be used to perform different actions depending on what the status outcome of the task is. For more information see Status Outputs in the Task Node Outputs section of Specification Macros Task Node.

The status output navigation is as follows:

Success

  • Successfully evaluated rule value.

Success with Warnings

  • No Constant to place the result.

Failed

  • General error - see Specification Report for more information.

Example

When this task is added the properties are static by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.

Example Data

Variable NameValue
DWQuotItemDesc3"With Side Rails"
Control NameValue
QuoteItem3

Examples

Property TypeExample ruleExample resultMeaning
Rule Text1500+17503250DriveWorks evaluates the static rule from the Rule Text property.
Rule Text"DWVariableQuoteItemDesc" & QuotationItemReturn"With Side Rails"DriveWorks will evaluate the rule once, resulting in DWVariableQuoteItemDesc3. As DWVariableQuoteItem3 is a Variable within the Project, DriveWorks takes the value of the Variable and drives this into the Constant. The Constant would be driven to say With Side Rails.

The Output results for the examples would be:

Output NameOutput Value
Evaluated Rule3250
Evaluated Rule"With Side Rails"

See Also

Indirect