Hello<div>you must set to RoleAttr &quot;=rr&quot; and not just &quot;rr&quot;</div><div>In the new 5.1, you will have a guided way to set bound variables to each other</div><div>Regards</div><div>Nicolas<br><br><div class="gmail_quote">
2010/3/25 kicho <span dir="ltr">&lt;<a href="mailto:golijat@gmail.com">golijat@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi Nicolas!<br>
<br>
Thank you for your quick answer! But, i was kind of hoping that that&#39;s not<br>
the solution...<br>
<br>
I&#39;ll attach screen shots of rule configuration and test scenario so that we<br>
could all see what am i doing wrong.<br>
<br>
Rule screen:<br>
<br>
<a href="http://n3.nabble.com/file/n519577/business_rule.jpg" target="_blank">http://n3.nabble.com/file/n519577/business_rule.jpg</a><br>
<br>
Rule source:<br>
<br>
<a href="http://n3.nabble.com/file/n519577/business_rule_src.jpg" target="_blank">http://n3.nabble.com/file/n519577/business_rule_src.jpg</a><br>
<br>
Test scenario:<br>
<br>
<a href="http://n3.nabble.com/file/n519577/test_scenario.jpg" target="_blank">http://n3.nabble.com/file/n519577/test_scenario.jpg</a><br>
<br>
When i choose &quot;Run scenario&quot;: this is what i get:<br>
<br>
<a href="http://n3.nabble.com/file/n519577/test_scenario_fail.jpg" target="_blank">http://n3.nabble.com/file/n519577/test_scenario_fail.jpg</a><br>
<br>
As you can see, i get a blank screen with no info at all, which points me to<br>
conclusion that something (not good) happend.<br>
<br>
In server log i found this:<br>
<br>
2010-03-25 09:27:17,684 INFO  [STDOUT] ERROR 25-03 09:27:17,684<br>
(ServiceImplementation.java:runScenario:1942)    [Error: could not<br>
access/write property (roleAttr) in: comExpert01.User]<br>
[Near : {... __fact__.roleAttr = __val_ ....}]<br>
                                       ^<br>
[Line: 1, Column: 0]<br>
<br>
I&#39;ve tried to google this but with no success.<br>
I&#39;m running guvnor as a standalone dist downloaded from jboss site, version<br>
5.0.1 on jbossAS 4.2.3, for repository instead of derby i&#39;m using mysql 5.x<br>
<br>
I should also mention that if i don&#39;t declare roleAttr in test scenario<br>
(something like this):<br>
<br>
<a href="http://n3.nabble.com/file/n519577/test_scenario_no_roleAttr.jpg" target="_blank">http://n3.nabble.com/file/n519577/test_scenario_no_roleAttr.jpg</a><br>
<br>
I get another blank screen after running test with this exception in log<br>
file:<br>
<br>
2010-03-25 09:49:38,295 INFO  [STDOUT] ERROR 25-03 09:49:38,295<br>
(ServiceImplementation.java:runScenario:1942)<br>
org.drools.RuntimeDroolsException: Exception executing predicate<br>
roleAttr.roleName == &quot;ADMIN&quot;<br>
<br>
Since there is no documentation about managing test scenarios i don&#39;t know<br>
what is wrong here.<br>
<br>
If you could give me some more directions or hints i would be very grateful.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/drools-guvnor-problem-when-creating-test-scenarios-based-on-referenced-domain-model-tp471099p519577.html" target="_blank">http://n3.nabble.com/drools-guvnor-problem-when-creating-test-scenarios-based-on-referenced-domain-model-tp471099p519577.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>