I think i worked it around.
Before I fired the rules, I put the following instruction in the "main" code:
workingMemory.setGlobal("wm", workingMemory);
Ofcourse in this way I can access the working memory within
the ruleflow action nodes and I can use them in order
to assert new facts into the "wm" global.
Does it sound a bit tricky?
Does it imply horrible integrity\security issues?
Please, I need a feed back from the "drools" guys to know whether
what I did is correct or not.
Thank You everyone.
Massi
----- Original Message -----
From: mmquelo massi
Newsgroups: gmane.comp.java.drools.user
To: Rules Users List
Sent: Wednesday, January 02, 2008 7:55 PM
Subject: Inserting Facts within "Action nodes" (RuleFlow)
Hi guys,
Is it possible to insert a new fact in the ruleflow action nodes?
I tried it simply adding an "insert(new Object())" instruction
in the action-node "textual editor" but I got back the following
exception:
org.mvel.PropertyAccessException
: unable to resolve property: insert(new Object())
Is it a simple dialect issue ? How to do it correctly?
Thank You!
Massi
------------------------------------------------------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users