joesinger12 / TestTicketTransfer

0 stars 0 forks source link

Source Code Update - Automatically replicate the evaluation of a RULE for all indices #53

Open joesinger12 opened 6 years ago

joesinger12 commented 6 years ago

DR - Each RULE Object:Property[0-9] requires DEFAULT, SIZING, and ANNUAL rules to be declared, right? That is, there is no functionality that automatically replicates the evaluation of a rule for all indices if the index in the rule target is not declared?

SC - The idea is this - left side of rule would be something like Object:Property[2-10] and within the rule expression(s) we could use the '#' sign (or some other symbol) as a placeholder to insert the array index. Probably the easiest implementation would be to expand this during ruleset compilation, so a rule referencing array elements 2-10 would compile into 9 individual rules w/ the '#' substitutions made for each. The other option would be to perform this looping during evaluation, but that would involve carrying around the "active" array index during rule evaluation.

Reported by: joesinger12

Original Ticket: cbecc-com/tickets/2741

joesinger12 commented 6 years ago

Original comment by: joesinger12

joesinger12 commented 1 year ago

Original comment by: joesinger12