Examples of RuleExecutionSet


Examples of javax.rules.admin.RuleExecutionSet

            // This rule execution set is part of the TCK.
            InputStream inStream = new FileInputStream( "example1.xml" );
            System.out.println("Acquired InputStream to example1.xml: " + inStream );

            // parse the ruleset from the XML document
            RuleExecutionSet res1 = ruleAdministrator.getLocalRuleExecutionSetProvider( null ).createRuleExecutionSet( inStream, null );
            inStream.close();
            System.out.println( "Loaded RuleExecutionSet: " + res1);

            // register the RuleExecutionSet
            String uri = res1.getName();
            ruleAdministrator.registerRuleExecutionSet(uri, res1, null );
            System.out.println( "Bound RuleExecutionSet to URI: " + uri);

            // Get a RuleRuntime and invoke the rule engine.
            System.out.println( "\nRuntime API\n" );
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.