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

Manasi manasi.a.damle at capgemini.com
Mon Oct 1 10:48:04 EDT 2012


Hi,
Thanks for your reply. Importing java.lang.String as a fact type in Guvnor
worked for me.
My package builds successfully , but when I write test scenario to test my
rule it gives following error:

*Unable to run the scenario.
[Error: could not access/write property (this) in: java.lang.String] [Near :
{... __fact__.this= __val__ ....}] ^ [Line: 1, Column: 1]*

I have rule rule1 which is web-guided decision table with following data
please see following screen shot:

<http://drools.46999.n3.nabble.com/file/n4020061/guvnor_rule2.jpg> 

*and my test scenario looks like below:*

<http://drools.46999.n3.nabble.com/file/n4020061/test_scenario.jpg> 
*
and I get following error when trying to run scenario:*

<http://drools.46999.n3.nabble.com/file/n4020061/test_scenario_error.jpg> 


Please help me with this issue if I am performing any wrong steps.

Thanks,
Manasi Damle

	




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


More information about the rules-users mailing list