Hi,
Please find the below sample dsl and dslr, in which only the keyword part is
alone getting converted in dslr. condition scope is not getting converted
when i look at the generated drl file. But when i change the scope from
condition to keyword, its getting converted.. am i missing something...
eg: [condition][]Get a Customer=$Customer : CustomerInfoType() is not
getting converted..
sample DSL
**********
[keyword][][Ii][fF]=when
[keyword][]Start Rule {ruleName}=rule {ruleName}
[keyword][]Template Header=template header
[keyword][]Start Template : "{tamplateName}"=template
"{tamplateName}"
[keyword][]Finish Template=end template
[keyword][]FieldName {field}={field}
[keyword][]Start template Rule"{ruleName}"=rule
"{ruleName}__(a){row.rowNumber}"
[keyword][]Finish Rule=end
[keyword][][Aa]dd [Rr]ule [Ii]nfo :
{attribute}("{value}")=@{attribute}("{value}")
[condition][]1st=1
[condition][]2nd=2
[condition][]3rd=3
[condition][]Get a Customer=$Customer : CustomerInfoType()
[condition][]-with {fieldName} as {value}=${fieldName} : {fieldName},
{fieldName}=={value}
sample dslr
**********
expander pricingRules.dsl
Start Rule "AutoRatingDemo"
Add Rule Info : subRuleName("test")
Add Rule Info : author("Vishal Kaushik")
Add Rule Info : DateOfCreation("19-Jan-2011")
when
Get a Customer
-with customerCode as "23470942810"
then
end
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Need-clarification-in...
Sent from the Drools - User mailing list archive at
Nabble.com.