Examples of RuleServiceExtensionDescription


Examples of org.wso2.carbon.rulecep.commons.descriptions.rule.service.RuleServiceExtensionDescription

                                             ResourceLoader resourceLoader) {
        //TODO
        RuleEngine ruleEngine =
                RuleServiceManger.getInstance().getRuleServerManagerService().createRuleEngine(
                        axisService.getClassLoader());
        RuleServiceExtensionDescription extensionDescription =
                (RuleServiceExtensionDescription) serviceDescription.getServiceExtensionDescription();
        RuleSetDescription ruleSetDescription = extensionDescription.getRuleSetDescription();
        Object ruleSource = ruleSetDescription.getRuleSource();

        int tenantId =  SuperTenantCarbonContext.getCurrentContext(axisService).getTenantId();
        if (ruleSource == null) {
            Object value = loadRuleScript(axisService.getClassLoader(), ruleSetDescription,
View Full Code Here

Examples of org.wso2.carbon.rulecep.commons.descriptions.rule.service.RuleServiceExtensionDescription

            ruleServiceAdminStub.uploadRuleFile(serviceName,
                    fileName, dataHandler);
            ServiceDescription ruleServiceDescription = getRuleServiceDescription(request);
            if (ruleServiceDescription != null) {
                ruleServiceDescription.setExtension(RuleConstants.RULE_SERVICE_ARCHIVE_EXTENSION);
                RuleServiceExtensionDescription extensionDescription =
                        (RuleServiceExtensionDescription) ruleServiceDescription.getServiceExtensionDescription();
                RuleSetDescription ruleSetDescription =
                        extensionDescription.getRuleSetDescription();
                if (ruleSetDescription != null) {
                    ruleSetDescription.setPath(fileName);
                    ruleSetDescription.setKey("");
                    ruleSetDescription.setRuleSource(null); //remove rule source
                }
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.