<p>Sessions are a runtime concept, Guvnor is a design time environment.</p>
<p>Ignoring this disconnect and assuming you want to use java.lang.String as a fact type in Guvnor you should be able to simply add an import for said class.</p>
<p>sent on the move</p>
<p>On 30 Sep 2012 18:55, "Manasi" <<a href="mailto:manasi.a.damle@capgemini.com">manasi.a.damle@capgemini.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Currently in my application I want to insert a *String object* into a<br>
StatefulKnowledgeSession.<br>
I don't want to insert object of any *User defined type* ,as input parameter<br>
contains only one string parameter.<br>
<br>
I am able to insert String object into my StatefulKnowledgeSession, but<br>
don't know how to access it in Guvnor , as I want to use value from this<br>
string object to satisfy one of the rule in my Guvnor decision table. I want<br>
to use this String object as one of the condition columns in Guvnor.<br>
<br>
Below is some code I am using:<br>
<br>
StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();<br>
String myString = new String("department");<br>
session.insert(myString);<br>
session.fireAllRules();<br>
<br>
<br>
Is there any way to access this String object in Guvnor?<br>
<br>
Thanks,<br>
Manasi.<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Inserting-String-Object-and-accessing-it-in-Guvnor-tp4020056.html" target="_blank">http://drools.46999.n3.nabble.com/Inserting-String-Object-and-accessing-it-in-Guvnor-tp4020056.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></p>