Bug 1078835 - Using reserved words from DRL/Java/MVEL as variables in guided rule editors should be safe
Summary: Using reserved words from DRL/Java/MVEL as variables in guided rule editors s...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
: 1079390 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-20 11:38 UTC by Toni Rikkola
Modified: 2020-03-27 19:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:08:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.