[rules-users] Inserting String Object and accessing it in Guvnor

Manasi manasi.a.damle at capgemini.com
Sun Sep 30 13:54:33 EDT 2012


Hi,

Currently in my application I want to insert a *String object* into a
StatefulKnowledgeSession.
I don't want to insert object of any *User defined type* ,as input parameter
contains only one string parameter.

I am able to insert String object into my StatefulKnowledgeSession, but
don't know how to access it in Guvnor , as I want to use value from this
string object to satisfy one of the rule in my Guvnor decision table. I want
to use this String object as one of the condition columns in Guvnor.

Below is some code I am using:

StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
String myString = new String("department");
session.insert(myString);
session.fireAllRules();


Is there any way to access this String object in Guvnor?

Thanks,
Manasi.






--
View this message in context: http://drools.46999.n3.nabble.com/Inserting-String-Object-and-accessing-it-in-Guvnor-tp4020056.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list