----- Original Message -----From: Kris VerlaenenTo: Rules Users ListSent: Thursday, January 03, 2008 3:41 PMSubject: Re: [rules-users] Inserting Facts within "Action nodes" (RuleFlow)The ruleflow action node can be used to specify some action (as a piece of code) that should be executed. Currently, it only has access to global variables. It might indeed be a good idea to also allow access to some kind of workingMemory variable. We will try to add support for that when we add support for process variables. If you want, you could open a JIRA for this to track the issue.Your solution, defining wm as a global, seems a possible workaround (and I don't see any problems that might arise by doing this). Another one would be using a ruleset node instead of an actionNode, and specifying a rule that does not have any conditions, something like:rule "MyRule"ruleflow-group "MyAction"whentheninsert(new Object());endKris----- Original Message -----From: mmquelo massiTo: Rules Users ListSent: Wednesday, January 02, 2008 7:55 PMSubject: [rules-users] 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())" instructionin the action-node "textual editor" but I got back the followingexception: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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users