Bug 1078835

Summary: Using reserved words from DRL/Java/MVEL as variables in guided rule editors should be safe
Product: [Retired] JBoss BRMS Platform 6 Reporter: Toni Rikkola <trikkola>
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Jiri Locker <jlocker>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0.0CC: kverlaen, lpetrovi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:08:21 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:

Description Toni Rikkola 2014-03-20 11:38:50 UTC
Description of problem:
Most commons that I have ran into are "var" and "end". 

rule test
 when
   Event( start:date)
   Event( end:date) // This actually still works ok
 then
   end.anyFunction(); // Does not reopen in guided rule editor
end

Additional info:
In 5.x we added the dollar sign on front of each variable to avoid this. end became $end. This might be a lot of work with what we have now. Another option is to block the user from adding reserved words.

Comment 2 Toni Rikkola 2014-03-21 20:11:48 UTC
*** Bug 1079390 has been marked as a duplicate of this bug. ***