Try \\n.  


On Mon, Apr 25, 2011 at 5:48 PM, Faisal Shafique <just_faisal@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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users