Better support for linebreaks in LHS
------------------------------------
Key: JBRULES-549
URL:
http://jira.jboss.com/jira/browse/JBRULES-549
Project: JBoss Rules
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Reporter: Dirk Bergstrom
Assigned To: Mark Proctor
I have some rules with very long LHS expressions. I'd like to split them across
multiple lines for readability. However, the parser has limited support for breaks.
These work:
when
ObjectTypeName( p0_exit_epoch > (RUM.now()),
p0_exit_epoch > (RUM.daysAgo(7)) )
variable :
OtherObjectType($rlis : rlis -> (RUM.countFieldsMatching($rlis,
"state", "dev-maybe") > 0))
These don't:
variable : OtherObjectType($rlis :
rlis -> (RUM.countFieldsMatching($rlis, "state", "dev-maybe")
> 0))
variable : OtherObjectType(($rlis : rlis ->
(RUM.countFieldsMatching($rlis, "state", "dev-maybe") > 0))
variable : OtherObjectType($rlis : rlis -> (RUM.countFieldsMatching($rlis,
"state", "dev-maybe") > 0))
While I'm at it, I'd love to have support for multiline expressions in DSL files,
but I can imagine that would be a bit harder...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira