hey mike,
Rules are applied on the POJO models which we upload, nw if i upload a model
in global area n write a rule based on it.
Now, if i import the rule in any package, i would need the pojo model in the
package..isn't it ?
Because if i dont have data, then where m i supposed to apply rules on ??
for example:
I upload into global a jar og the following class
public class person
{
private int age;
private String status;
// getters and setters;
}
i make a rule in global area:
rule "age and status"
when
$p: Person(age>18)
then
$p.status="accepted"
end
Now i import the rule in package XYZ, bt ma package doesnt have the POJO
model,
now the rule in the package XYZ is a waste..ri8 ?? coz it will neva be
fired..
Can you give me an exmple where i would like to use a POJO model in two
different packages!!!
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-Help-tp4018290p4018311.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.