<p>Hi,</p>
<p>You can create two types of Model I&#39;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.</p>

<p>When authoring rules in Guvnor you select a Fact (class) first and then click on this to select fields.</p>
<p>By what you describe I get the feeling you may not have read Guvnor&#39;s user-guide. Please do have a look.</p>
<p>With kind regards,</p>
<p>Mike</p>
<p>sent on the move</p>
<p>On 16 Oct 2011 03:07, &quot;johnz&quot; &lt;<a href="mailto:jzink@plymouthrock.com">jzink@plymouthrock.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;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&#39;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&#39;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">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>