[rules-users] drools migration
radhika.inugala
radhika.inugala at gmail.com
Tue Jul 2 14:23:30 EDT 2013
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-tp4024691p4024718.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list