[
http://jira.jboss.com/jira/browse/JBRULES-1442?page=all ]
Mark Proctor closed JBRULES-1442.
---------------------------------
Resolution: Rejected
Assignee: Mark Proctor
It is for this reason, the tooling and language issues, that we have not made this a
public feature. Java simply has no way to understand FactTemplates so you can't use
normal java language semantics to initialise that - sorry, and it won't be something
we'll add to the java dialect as its just too complicated. We have requested that the
MVEL author builds an API to support pluggable models, so that this would at least be
possible using MVEL. He's considering it, but in no hurry.
Cannot create template Fact in RHS
----------------------------------
Key: JBRULES-1442
URL:
http://jira.jboss.com/jira/browse/JBRULES-1442
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.4
Reporter: greywind
Assigned To: Mark Proctor
The following drl should work if i'm not mistaken
template DuplicateIdentifier
Identifier identifier;
end
rule ""
when
then
insert (new DuplicateIdentifier());
end
but it leads to
Error: Rule Compilation error DuplicateIdentifier cannot be resolved to a type
Exception in thread "main" org.drools.rule.InvalidRulePackage: Rule Compilation
error : [Rule name=, agendaGroup=MAIN, salience=0, no-loop=false]
org/drools/entity/Rule__0.java (8:294) : DuplicateIdentifier cannot be resolved to a
type
--
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