Hello,
I have a question on how one can import declared types into a decision
table, that are declared in a separate DRL file.
Take for instance the following declared type which is defined in an
isolated DRL file:
declare Offer
id: String
name: String
isValid: boolean
end
This type can be used in Java code if we were to use the Knowledge base to
give us a FactType via code like:
FactType offerType = kbase.getFactType("package.to.model.offer",
"Offer");
and then use them accordingly. However, i'm not sure if such an approach /
api exists for importing declared types from DRLs into decision tables.
How can something like this be done in Decision tables?
When I import the declared Offer, which isn't complied yet, the decision
table complains.
Thanks,
Uday
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Using-Declared-types-...
Sent from the Drools - User mailing list archive at
Nabble.com.