Sample Drools program variable assignment may confuse first-time users
----------------------------------------------------------------------
Key: JBRULES-1872
URL:
https://jira.jboss.org/jira/browse/JBRULES-1872
Project: JBoss Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-eclipse
Affects Versions: 5.0.0.M3
Reporter: Len DiMaggio
Assignee: Mark Proctor
Priority: Trivial
I first noticed this a while ago - in the sample Drools project created in eclipse,
Sample.drl includes when statements that assign the 'message' member of the
referenced class to a local variable also named 'message':
m : Message( status == Message.HELLO, message : message )
I think it would be helpful to users to change the variable name - for example:
m : Message( status == Message.HELLO, myMessage : message )
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira