Bug 1130282
| Summary: | Change and Modify in the Guided Rule Editor, seemingly do the exact same thing code generation wise why do they both exist | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Jim Tyrrell <jtyrrell> | ||||
| Component: | Business Central | Assignee: | manstis | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Jiri Locker <jlocker> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.0.2 | ||||||
| Target Milestone: | DR3 | ||||||
| Target Release: | 6.1.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-10-03 13:40:05 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
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. |
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: