Package org.drools.smf

Examples of org.drools.smf.RuleSetCompiler


                if ( e.getException() != null )
                {
                    throw new IntegrationException( e.getException() );
                }
            }
            RuleSetCompiler compiler = new RuleSetCompiler(ruleSet,
                                                           packageName,
                                                           "drools" );
            this.ruleSets.put(ruleSet.getName(), compiler);
        }
    }
View Full Code Here


        Iterator it = map.values().iterator();
        RuleSet[] ruleSets = new RuleSet[map.size()];
        int i = 0;
        while ( it.hasNext() )
        {
            RuleSetCompiler compiler = (RuleSetCompiler) it.next();
            ruleSets[i] = (compiler).getRuleSet();
            addRuleSetBinary(compiler.getBinaryDeploymentJar());
            i++;
        }
        addFromRuleSet( ruleSets );
    }
View Full Code Here

    /** Just in case you want to dump out the contents to disk */
    private static void dumpGeneratedSourceToDisk(RuleSetLoader ruleSetLoader) throws IOException,
                                                                              FileNotFoundException {
        Map map = ruleSetLoader.getRuleSets();
        RuleSetCompiler compiler = (RuleSetCompiler) map.values().iterator().next();
       
        byte[] jar = compiler.getSourceDeploymentJar();
        //will put all the sources in the folling jar
        File file = new File("/helloworld.jar");
        if (file.exists()) file.delete();
        FileOutputStream out = new FileOutputStream(file);
        out.write(jar);
View Full Code Here

            this.properties = properties;
        }
        this.ruleSet = ruleSet;
        this.description = ruleSet.getDocumentation( );

        RuleSetCompiler compiler = null;
        try
        {
            compiler = new RuleSetCompiler( ruleSet,
                                            "org.drools",
                                            "drools" );
        }
        catch ( IOException e )
        {
View Full Code Here

TOP

Related Classes of org.drools.smf.RuleSetCompiler

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.