I assume Vehicle is in your POJO model?<br><br>I also assume your import statements (in your package configuration) also include Vehicle (if it is in a different package to that in which your QA Test is being defined)?<br>
<br><div class="gmail_quote">2011/10/17 Zink, John <span dir="ltr"><<a href="mailto:JZink@plymouthrock.com">JZink@plymouthrock.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Thanks for the advice Mike. I did a quick read of the user manual and was able to setup a rule based on some of the fields I created in the POJO.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">My next thing to try was to test a rule. So thru Guvnor I setup a “Test Scenario”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">When I click the “Run Scenario” I get a “[package configuration problem]Error importing : Vehicle error”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Any ideas?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> [mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>]
<b>On Behalf Of </b>Michael Anstis<br>
<b>Sent:</b> Sunday, October 16, 2011 3:06 AM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] Drools Guvnor -- Not seeing Model Correctly<u></u><u></u></span></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p>Hi,<u></u><u></u></p>
<p>You can create two types of Model I'm Guvnor: 1) a declarative model, in which case you can open the model and see the facts and fields; 2) upload a POJO model, in which case the model screen only allows you to download the current version.<u></u><u></u></p>
<p>When authoring rules in Guvnor you select a Fact (class) first and then click on this to select fields.<u></u><u></u></p>
<p>By what you describe I get the feeling you may not have read Guvnor's user-guide. Please do have a look.<u></u><u></u></p>
<p>With kind regards,<u></u><u></u></p>
<p>Mike<u></u><u></u></p>
<p>sent on the move<u></u><u></u></p>
<p>On 16 Oct 2011 03:07, "johnz" <<a href="mailto:jzink@plymouthrock.com" target="_blank">jzink@plymouthrock.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">I'm new to Drools. Want to play with Guvnor to see if it will be applicable<br>
for my application.<br>
<br>
I have Guvnor running thru Eclipse/Jboss. I can get into Guvnor and create<br>
categories and packages.<br>
I create a real simple domain model (see below). I then upload the jar file<br>
to create a model in Guvnor.<br>
After uploading i don't see anything appear on the model tab. i was<br>
expecting to see the classes and attributes. when i try creating a new rule<br>
using the model i only see the class, but don't see any of the attributes.<br>
what am i doing wrong?<br>
<br>
<br>
here is the code for the domain model<br>
<br>
public class Driver {<br>
<br>
private String name;<br>
private int age;<br>
private Vehicle car;<br>
<br>
public Driver() {}<br>
<br>
public Driver(String name, int age, Vehicle car) {<br>
<a href="http://this.name" target="_blank">this.name</a> = name;<br>
this.age = age;<br>
this.car = car;<br>
}<br>
<br>
public String getName() {<br>
return name;<br>
}<br>
<br>
public void setName(String name) {<br>
<a href="http://this.name" target="_blank">this.name</a> = name;<br>
}<br>
<br>
public int getAge() {<br>
return age;<br>
}<br>
<br>
public void setAge(int age) {<br>
this.age = age;<br>
}<br>
<br>
public Vehicle getCar() {<br>
return car;<br>
}<br>
<br>
public void setCar(Vehicle car) {<br>
this.car = car;<br>
}<br>
<br>
}<br>
<br>
<br>
public class Vehicle {<br>
private Long id;<br>
private String make;<br>
private String model;<br>
private String VIN;<br>
private String damageType;<br>
<br>
public Vehicle()<br>
{<br>
}<br>
<br>
public Vehicle(Long id, String make, String model, String VIN, String<br>
damageType)<br>
{<br>
<a href="http://this.id" target="_blank">this.id</a> = id;<br>
this.make = make;<br>
this.model = model;<br>
this.VIN = VIN;<br>
this.damageType = damageType;<br>
}<br>
<br>
public Long getId() {<br>
return id;<br>
}<br>
<br>
public void setId(Long id) {<br>
<a href="http://this.id" target="_blank">this.id</a> = id;<br>
}<br>
<br>
public String getMake() {<br>
return make;<br>
}<br>
<br>
public void setMake(String make) {<br>
this.make = make;<br>
}<br>
<br>
public String getModel() {<br>
return model;<br>
}<br>
<br>
public void setModel(String model) {<br>
this.model = model;<br>
}<br>
<br>
public String getVIN() {<br>
return VIN;<br>
}<br>
<br>
public void setVIN(String vIN) {<br>
VIN = vIN;<br>
}<br>
<br>
public String getDamageType() {<br>
return damageType;<br>
}<br>
<br>
public void setDamageType(String damageType) {<br>
this.damageType = damageType;<br>
}<br>
<br>
<br>
}<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Guvnor-Not-seeing-Model-Correctly-tp3425245p3425245.html" target="_blank">
http://drools.46999.n3.nabble.com/Drools-Guvnor-Not-seeing-Model-Correctly-tp3425245p3425245.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" target="_blank">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><u></u><u></u></p>
</blockquote>
</div></div></div>
</div>
<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>
<br></blockquote></div><br>