you should use = instead : in the then clause
$two = new RKEM_TARGET();
it's java code
I'm trying to assert a new Fact based on a condition, but I dont know how
to assert a new Fact with a specific attribute in it. I'm trying this -
why doesn't this syntax work:
rule "Assert new Target Records"
$one : RKEM_TARGET ( EQPNO == "1") &&
$three : RKEM_TARGET ( EQPNO == "3")
// Assert the missing Equipment number record
$two : new RKEM_TARGET();
$two.setEQPNO("2"); // Set attribute
assert( $two ); <-- This does NOT work...
How do you assert a new Fact with a specific value in the attribute(s)?
View this message in context:
Sent from the drools - user mailing list archive at Nabble.com