Re: [rules-users] drools migration
Yes, the dependencies are in my local repo. I changed the way we read the DRL files, I need to use KnowledgeBase classes. Once I am done with that, I updated the antlr version as well in the maven dependencies. Now I am stuck at other point. In some of the rules, we have ArrayList() from collect() in the when part and we retract them in the when part of the rule. I am getting ConsequenceException now which is Caused by: java.util.ConcurrentModificationException. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-drools-migration-tp4024691p4024714.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools migration
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. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools migration
Thanks, I see what you are saying. I am trying that out. But I am wondering why the drools versions are not backward compatible. But all these rules were written a long back. And I was trying not to change the same. I need to build an application which will have rules per client kind of thing. So I would need to have a UI to create rules and also store them in database. I have seen some examples of using Guvnor and the db to store rules with the newer versions of the drools. When I upgraded the versions, my existing rules start breaking :( -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-drools-migration-tp4024691p4024720.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] drools migration
Also I am looking at the domain objects for this: And I need to retract all the objects with locationType == LocationType.ORIGIN the fromState is one of them. But there would be more of the same. I think that is the reason the collect is in there. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-drools-migration-tp4024691p4024721.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] guvnor-webapp war file download
Hi, I would like to integrate guvnor with in my web app. I have read the documentation and seen that we need to deploy this as a separate web application on server. And then embed using IFrame.. But I am unable to locate the war file. Let me know where I can find the guvnor web app war file. Thanks, RR -- View this message in context: http://drools.46999.n3.nabble.com/guvnor-webapp-war-file-download-tp4024722.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] guvnor-webapp war file download
Ignore this post. I got the war file. http://mvnrepository.com/artifact/org.drools/guvnor-webapp-drools/5.5.0.Final -- View this message in context: http://drools.46999.n3.nabble.com/guvnor-webapp-war-file-download-tp4024722p4024723.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] A design decision to use Guvnor
Got it. Thanks for the info. -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-A-design-decision-to-use-Guvnor-tp4024742p4024825.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users