[rules-users] DSL how to define recursive expression
prashantmirajkar at gmail.com
prashantmirajkar at gmail.com
Mon Oct 15 04:46:46 EDT 2012
A simple statement like
id of organization
with DSL rule
[keyword][]{attr:[A-Za-z0-9]+}\s+property\s+of\s+{obj:[A-Za-z0-9]+}={obj}.get{attr!ucfirst}()
works just fine with result organization.getId().
If I want to use statements like
id property of organization property of department
which should result in to department.getOrganization().getId().
OR
id property of organization property of department property of employee
which should result in to
employee.getDepartment().getOrganization().getId().
How do I achieve this?
cheers,
Prashant
--
View this message in context: http://drools.46999.n3.nabble.com/DSL-how-to-define-recursive-expression-tp4020283.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list