Thanks for your reply.
Here is a rule:
rule "US authorities"
lock-on-active true
when
$trx : TransactionWrapper(ignoreSourceLocation == false) &&
$fromState : TAyWrapper ( authorityType == TAType.STATE || authorityType
== TAType.COUNTRY, locationType == LocationType.ORIGIN ) &&
$toState : TAWrapper ( authorityType == TAType.STATE || authorityType ==
TAType.COUNTRY, locationType == LocationType.DESTINATION, code !=
$fromState.code ) &&
$removableAuthorities : ArrayList() from collect(TAWrapper( locationType
== LocationType.ORIGIN ))
then
for(Object ta: $removableAuthorities){
retract (ta);
}
end
Basically it is not retracting a fact. I do not know what is the problem.
I have changed the version from 5.2 to 5.5.0 Final(Now I am not getting any
exception, but I could see that the fact is still there)
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-drools-migration-tp4024691p...
Sent from the Drools: User forum mailing list archive at
Nabble.com.