Examples of JSR94BackendRuntimeFactory


Examples of org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory

    private static final String SELLER_ID = "ruleTestShop";
    private BillingEngine billingEngine;

    public void setUp() throws Exception {
        RuleServerManager ruleServerManager = new RuleServerManager();
        RuleServerConfiguration configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);
        Util.setRuleManagerService(ruleServerManager);

        String carbonHome = "src/test/resources/carbonhome1";
        System.setProperty("carbon.home", carbonHome);
        System.setProperty("carbon.config.dir.path", carbonHome + "/repository/conf");

        SessionDescription sessionDescription = new SessionDescription();
        sessionDescription.setSessionType(SessionDescription.STATEFUL_SESSION);
        ruleServerManager = new RuleServerManager();// TODO to get from a OSGI service
        configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);

        Util.setRuleManagerService(ruleServerManager);

View Full Code Here

Examples of org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory

    private static final String SELLER_ID = "carbonHome2TestShop";
    private BillingEngine billingEngine;

    public void setUp() throws Exception {
        RuleServerManager ruleServerManager = new RuleServerManager();
        RuleServerConfiguration configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);
        Util.setRuleManagerService(ruleServerManager);

        String carbonHome = "src/test/resources/carbonhome2";
        System.setProperty("carbon.home", carbonHome);
        System.setProperty("carbon.config.dir.path", carbonHome + "/repository/conf");

        SessionDescription sessionDescription = new SessionDescription();
        sessionDescription.setSessionType(SessionDescription.STATEFUL_SESSION);
        ruleServerManager = new RuleServerManager();// TODO to get from a OSGI service
        configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);

        Util.setRuleManagerService(ruleServerManager);

View Full Code Here

Examples of org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory

    private static final String SELLER_ID = "ruleTestShop";
    private BillingEngine billingEngine;

    public void setUp() throws Exception {
        RuleServerManager ruleServerManager = new RuleServerManager();
        RuleServerConfiguration configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);
        Util.setRuleManagerService(ruleServerManager);

        String carbonHome = "src/test/resources/carbonhome1";
        System.setProperty("carbon.home", carbonHome);
        System.setProperty("carbon.config.dir.path", carbonHome + "/repository/conf");

        SessionDescription sessionDescription = new SessionDescription();
        sessionDescription.setSessionType(SessionDescription.STATEFUL_SESSION);
        ruleServerManager = new RuleServerManager();// TODO to get from a OSGI service
        configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);

        Util.setRuleManagerService(ruleServerManager);

View Full Code Here

Examples of org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory

        System.setProperty("carbon.config.dir.path", carbonHome + "/repository/conf");

//        SessionDescription sessionDescription = new SessionDescription();
//        sessionDescription.setSessionType(SessionDescription.STATEFUL_SESSION);
        RuleServerManager ruleServerManager = new RuleServerManager();// TODO to get from a OSGI service
        RuleServerConfiguration configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);

//        OMElement config = TestUtils.loadConfigXML();
////        RuleServerConfiguration configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
//        RuleServerManager ruleServerManager = new RuleServerManager();
View Full Code Here

Examples of org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory

//   TODO      Util.setTenantUsageRetriever(new TenantUsageRetriever(registryDataSource,
//                superTenantGovernanceRegistry, registryService));

        RuleServerManager ruleServerManager = new RuleServerManager();
        RuleServerConfiguration configuration =
                new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration);
        Util.setRuleServerManagerService(ruleServerManager);
    }
View Full Code Here

Examples of org.wso2.carbon.rule.engine.jsr94.JSR94BackendRuntimeFactory

//        enrtyPoint.setName("symbol");
//        enrtyPoint.setValue("Stock Stream");
        SessionDescription sessionDescription = new SessionDescription();
        sessionDescription.setSessionType(SessionDescription.STATEFUL_SESSION);
        RuleServerManager ruleServerManager = new RuleServerManager();// TODO to get from a OSGI service
        RuleServerConfiguration configuration = new RuleServerConfiguration(new JSR94BackendRuntimeFactory());
        ruleServerManager.init(configuration); //TODO

//        sessionDescription.addSessionPropertyDescription(enrtyPoint);
        ruleMediatorDescription.setSessionDescription(sessionDescription);
        ruleMediatorDescription.addFactDescription(inputOne);
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.