Package org.drools.template

Examples of org.drools.template.ObjectDataCompiler.compile()


    private Resource expand(InputStream is, RuleParameters ruleParameters) {
        ObjectDataCompiler converter = new ObjectDataCompiler();
        Collection<RuleParameters> parameters = new ArrayList<RuleParameters>();
        parameters.add(ruleParameters);
        String drl = converter.compile(parameters, is);
        logger.trace("\n------------\n{}\n------------", drl);
        Reader rdr = new StringReader(drl);
        return ResourceFactory.newReaderResource(rdr);
    }
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.