[jboss-jira] [JBoss JIRA] Closed: (JBRULES-549) Better support for linebreaks in LHS

Edson Tirelli (JIRA) jira-events at lists.jboss.org
Fri Jul 6 15:52:52 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBRULES-549?page=all ]

Edson Tirelli closed JBRULES-549.
---------------------------------

    Resolution: Done

This shall be working fine now.

> 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: Edson Tirelli
>            Priority: Minor
>             Fix For:  4.0.0.MR4
>
>
> 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

        



More information about the jboss-jira mailing list