The Project module contains two Integer attributes, Budget Cost and Actual Cost, and a Choice attribute named Budget. The Budget attribute contains two items: Within Budget and Over Budget. To model the relationship between the budgeted and actual costs, use the SetChoice business rule and an expression to update the Budget attribute:
='Actual Cost' >= 'Budget Cost' ? 1 : 2
This expression indicates that if the Actual Cost is greater than or equal to the Budget Cost, the value is 1. Otherwise, the value is 2.
=SetChoice("328","18","false","18_2","19_1",'Cost Evaluation')
The business rule indicates that the Budget attribute (ID 328), must be set to the Within Budget item (ID 18), except when the value in Cost Evaluation is 1. In that case, the Budget attribute must be set to the Over Budget item (ID 19).