Package org.drools.event.rule

Examples of org.drools.event.rule.ActivationUnMatchListener


                AgendaItem item = ( AgendaItem ) knowledgeHelper.getActivation();
                final Cheese cheese = ( Cheese ) item.getTuple().getHandle().getObject();
                final int oldPrice = cheese.getPrice();
                cheese.setPrice( 100 );
               
                item.setActivationUnMatchListener( new ActivationUnMatchListener() {
                   
                    public void unMatch(org.drools.runtime.rule.WorkingMemory wm,
                                        org.drools.runtime.rule.Activation activation) {
                        cheese.setPrice( oldPrice );
                    }
View Full Code Here

TOP

Related Classes of org.drools.event.rule.ActivationUnMatchListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.