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

Faisal Shafique just_faisal at yahoo.com
Mon Apr 25 19:48:02 EDT 2011


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




More information about the rules-users mailing list