I'm new to Drools. Want to play with Guvnor to see if it will be applicable
for my application.
I have Guvnor running thru Eclipse/Jboss. I can get into Guvnor and create
categories and packages.
I create a real simple domain model (see below). I then upload the jar file
to create a model in Guvnor.
After uploading i don't see anything appear on the model tab. i was
expecting to see the classes and attributes. when i try creating a new rule
using the model i only see the class, but don't see any of the attributes.
what am i doing wrong?
here is the code for the domain model
public class Driver {
private String name;
private int age;
private Vehicle car;
public Driver() {}
public Driver(String name, int age, Vehicle car) {
this.name = name;
this.age = age;
this.car = car;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public Vehicle getCar() {
return car;
}
public void setCar(Vehicle car) {
this.car = car;
}
}
public class Vehicle {
private Long id;
private String make;
private String model;
private String VIN;
private String damageType;
public Vehicle()
{
}
public Vehicle(Long id, String make, String model, String VIN, String
damageType)
{
this.id = id;
this.make = make;
this.model = model;
this.VIN = VIN;
this.damageType = damageType;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getMake() {
return make;
}
public void setMake(String make) {
this.make = make;
}
public String getModel() {
return model;
}
public void setModel(String model) {
this.model = model;
}
public String getVIN() {
return VIN;
}
public void setVIN(String vIN) {
VIN = vIN;
}
public String getDamageType() {
return damageType;
}
public void setDamageType(String damageType) {
this.damageType = damageType;
}
}
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-Guvnor-Not-seeing-Model-Correctl...
Sent from the Drools: User forum mailing list archive at
Nabble.com.