[rules-users] Is it a valid use of \n in DSL

Sai Hegde saihegde at gmail.com
Mon Apr 25 22:55:51 EDT 2011


Try \\n.


On Mon, Apr 25, 2011 at 5:48 PM, Faisal Shafique <just_faisal at yahoo.com>wrote:

> Hi,
>
> I want to know if following is a valid use of '\n' i.e new line character
> in a DSL to put different patterns on different lines in resulting DRL?
>
> [when]There is an instance of
> RulesContext=$rc:RulesContext()\n$ce:CaseEligibility()\n$cp:CertificationPeriod(startDate
> <= $rc.calculationDate, endDate >= $rc.calculationDate, caseId ==
> $rc.caseId)
>
> which results in following DRL
>
>
> when
>
> $rc:RulesContext()
> $ce:CaseEligibility()
> $cp:CertificationPeriod(startDate <= $rc.calculationDate, endDate >=
> $rc.calculationDate, caseId == $rc.caseId)
>
>
> DSL parser expands this correctly but the question is whether this is a
> supported behavior or just works because of the way parsing works and hence
> may change in future?
>
> Thanks,
>
> Faisal Shafique
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110425/38ac99a1/attachment.html 


More information about the rules-users mailing list