Examples of removeRule()


Examples of org.drools.rule.Package.removeRule()

            this.removalsSinceLock++;

            removeRule( pkg,
                        rule );
            pkg.removeRule( rule );
            addReloadDialectDatas( pkg );
        } finally {
            unlock();
        }
    }
View Full Code Here

Examples of org.drools.rule.Package.removeRule()

            }
            this.removalsSinceLock++;

            removeRule( pkg,
                        rule );
            pkg.removeRule( rule );
            if ( this.reloadPackageCompilationData == null ) {
                this.reloadPackageCompilationData = new ReloadPackageCompilationData();
            }
            this.reloadPackageCompilationData.addDialectDatas( pkg.getDialectRuntimeRegistry() );
View Full Code Here

Examples of org.drools.rule.Package.removeRule()

            this.removalsSinceLock++;

            removeRule( pkg,
                        rule );
            pkg.removeRule( rule );
            addReloadDialectDatas( pkg );
        } finally {
            unlock();
        }
    }
View Full Code Here

Examples of org.eigenbase.relopt.RelOptPlanner.removeRule()

    planner.addRule(EnumerableDrillRule.getInstance(driver == null ? null : driver.getClient()));

    // Enable when https://issues.apache.org/jira/browse/DRILL-57 fixed
    if (false) {
      planner.addRule(DrillValuesRule.INSTANCE);
      planner.removeRule(JavaRules.ENUMERABLE_VALUES_RULE);
    }
    return planner;
  }
}
View Full Code Here

Examples of org.geoserver.security.DataAccessRuleDAO.removeRule()

                // cascade delete the whole selection
                Catalog catalog = GeoServerApplication.get().getCatalog();
                CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(catalog);
                DataAccessRuleDAO dao = DataAccessRuleDAO.get();
                for (DataAccessRule rule : selection) {
                    dao.removeRule(rule);  
                }
                try {
                    dao.storeRules();
                } catch (IOException e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.geoserver.security.ServiceAccessRuleDAO.removeRule()

            protected boolean onSubmit(AjaxRequestTarget target, Component contents) {
                // cascade delete the whole selection
                ServiceAccessRuleDAO dao = ServiceAccessRuleDAO.get();
                for (ServiceAccessRule service : selection) {
                    dao.removeRule(service);
                }
                try {
                    dao.storeRules();
                } catch (IOException e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.geoserver.security.impl.DataAccessRuleDAO.removeRule()

                // cascade delete the whole selection
                Catalog catalog = GeoServerApplication.get().getCatalog();
                CascadeDeleteVisitor visitor = new CascadeDeleteVisitor(catalog);
                DataAccessRuleDAO dao = DataAccessRuleDAO.get();
                for (DataAccessRule rule : selection) {
                    dao.removeRule(rule);  
                }
                try {
                    dao.storeRules();
                } catch (IOException e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.geoserver.security.impl.ServiceAccessRuleDAO.removeRule()

            protected boolean onSubmit(AjaxRequestTarget target, Component contents) {
                // cascade delete the whole selection
                ServiceAccessRuleDAO dao = ServiceAccessRuleDAO.get();
                for (ServiceAccessRule service : selection) {
                    dao.removeRule(service);
                }
                try {
                    dao.storeRules();
                } catch (IOException e) {
                    e.printStackTrace();
View Full Code Here

Examples of org.kie.internal.KnowledgeBase.removeRule()

            ksession.setGlobal( "list", list );
            ksession.setGlobal( "latch", latch );           
           
            ksession.fireAllRules();          
            Thread.sleep(500); // this makes sure it actually enters a rule
            kbase.removeRule("org.drools.compiler.test", "TimerRule");
            ksession.fireAllRules();
            latch.countDown();
            Thread.sleep(500); // allow the last rule, if we were in the middle of one to actually fire, before clearing
            ksession.fireAllRules();
            list.clear();
View Full Code Here

Examples of org.kie.internal.KnowledgeBase.removeRule()

         DefaultFactHandle handle = (DefaultFactHandle) ksession.insert( "hello" );
         ksession.fireAllRules();
         LeftTuple leftTuple = handle.getFirstLeftTuple();
         assertNotNull( leftTuple );
         assertNotNull( leftTuple.getPeer() );
         kbase.removeRule( "org.drools.compiler",
                           "rule2" );
         leftTuple = handle.getFirstLeftTuple();
         assertNotNull( leftTuple );
         assertNull( leftTuple.getLeftParentNext() );
     }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.