What should you do to ensure that the RuleA rule is re-evaluated after the RuleB rule?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.

Your workflow has a rule set and a property named Discount. The rule set includes two rules named RuleA and RuleB.

The RuleA rule has the following properties:
Expression = "IF this.Discount > 10 THEN this.Discount=10" Reevaluation = "Always"
Priority = 0

The RuleB rule has the following properties:

Expression = "IF this.OrderAmount > 2000 THEN this.Discount = this.Discount + 5" Reevaluation = "Always"
Priority = 0

The rule set has its chaining behavior set to Explicit Update Only.

You need to ensure that the RuleA rule is re-evaluated after the RuleB rule.

What should you do?

You create a Windows Workflow Foundation application by using Microsoft .NET Framework 3.5.

Your workflow has a rule set and a property named Discount. The rule set includes two rules named RuleA and RuleB.

The RuleA rule has the following properties:
Expression = “IF this.Discount > 10 THEN this.Discount=10” Reevaluation = “Always”
Priority = 0

The RuleB rule has the following properties:

Expression = “IF this.OrderAmount > 2000 THEN this.Discount = this.Discount + 5” Reevaluation = “Always”
Priority = 0

The rule set has its chaining behavior set to Explicit Update Only.

You need to ensure that the RuleA rule is re-evaluated after the RuleB rule.

What should you do?

A.
Set the expression for the RuleB rule to “IF this.OrderAmount > 2000 THEN this.Discount = this.Discount + 5 Update(“RuleA”)”

B.
Set the expression for the RuleB rule to “IF this.OrderAmount > 2000 THEN this.Discount = this.Discount + 5 Update(“this/Discount”)”

C.
Set the expression for the RuleA rule to “IF this.Discount > 10 THEN this.Discount = 10 Update(RuleB”)”

D.
Set the expression for the RuleA rule to “IF this.Discount > 10 THEN this.Discount = 10 Update(“this/Discount”)”



Leave a Reply 0

Your email address will not be published. Required fields are marked *