[
http://jira.jboss.com/jira/browse/JBRULES-1440?page=comments#action_12397335 ]
greywind commented on JBRULES-1440:
-----------------------------------
What I would like to be able to do is:
package org.drools.entity
template ISIN
String Identifier
end
template Identifiers
ISIN ISIN
end
template Settlement
String InstrumentType
String InstrumentName
Identifiers Identifiers
end
rule "TestEntity"
dialect "mvel"
when
$s : Settlement(InstrumentType == "BOND", name : InstrumentName, id :
Identifiers.ISIN.Identifier)
then
System.out.println("Found: " + name + ", " + id);
end
I want to use a template definition as a type in another template.
Support for Nested Templates
----------------------------
Key: JBRULES-1440
URL:
http://jira.jboss.com/jira/browse/JBRULES-1440
Project: JBoss Drools
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: All
Affects Versions: 4.0.4
Reporter: greywind
Attachments: current.drl
I have to need to use fact templates but I still want to be able to use nested
properties. Currently I cannot do that fully.
What I can do is what is in attachment 'current'. What I would like to do is in
attachment 'wanted'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira