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-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.