If you add a map when starting a process, those values will be set as
process variables. For example:
[ a : "SomeString"; b : 3 ].
Simplest way to access these variables in a constraint is using a code
constraint, something like:
return "SomeOtherString".equals(a);
or
return b > 2;
So you can just use process variables in your code constraints as if they
were local variables. You just have to make sure you define them as process
variables (click on the background of your flow and edit the variables
property to do this).
Kris
----- Original Message -----
From: "jeanjvr" <jeanjvr(a)live.co.za>
To: <rules-users(a)lists.jboss.org>
Sent: Monday, April 12, 2010 12:17 PM
Subject: [rules-users] DROOLS FLOW: Accessing the Map parameter object in a
Java constraint evaluation function
I cannot find an example of this in the documentation and a search on the
mailing list was fruitless.
Right now my test process works fine - the constraints in Split Nodes are
set "always true" with different priorities.
I need to access the variables inside the Map parameter sent into the
process when it is started by using a Java evaluation function in a Split
Node:
_processinstance = _ksession.startProcess("flow0", _parameters);
I just don't know how to reference that Map parameter in the Java code in
a
Split node.
Thanks for any advice.
--
View this message in context:
http://n3.nabble.com/DROOLS-FLOW-Accessing-the-Map-parameter-object-in-a-...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm