Created attachment 926882 [details] Showing both options. Description of problem: Seems like in the then clause editor, the change and modify options do the exact same thing, why are they both there? Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
They do not do the same thing: One uses a modify(x) {..} block*; the other simple calls the objects setter methods. * in 6.0.1 the difference is more subtle; one calls the setters the other calls the setters but also an "update" method to signal the change to the rule engine. The first will signal a change to the fact to the rule engine at runtime, the other does not. For example:- Modify a field -------------- modify( $a1 ) { setAge( 22 ) } Change a field -------------- $a2.setAge( 25 ); Perhaps this is more of a (Workbench/Business Central) documentation issue?
Wow, that is crazy subtle. Something should be documented there. Not sure this is a bug, but something that probably should be documented or reflected better in the UI.