Examples of RuleServiceClientException


Examples of org.wso2.carbon.rule.service.ui.RuleServiceClientException

    public void uploadService(String fileName, DataHandler dataHandler) {
        try {
            serviceUploaderStub.uploadService(fileName, dataHandler);
        } catch (Exception e) {
            throw new RuleServiceClientException("Error uploading rule archive : " + fileName, e, log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.service.ui.RuleServiceClientException

            if (ruleServiceDescription != null) {
                ruleServiceDescription.setExtension(RuleConstants.RULE_SERVICE_ARCHIVE_EXTENSION);
            }
            return strings;
        } catch (Exception e) {
            throw new RuleServiceClientException("Error uploading facts : " + fileName, log);
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.service.ui.RuleServiceClientException

                    ruleSetDescription.setKey("");
                    ruleSetDescription.setRuleSource(null); //remove rule source
                }
            }
        } catch (Exception e) {
            throw new RuleServiceClientException("Error uploading rule script : " + fileName, log);
        }

    }
View Full Code Here

Examples of org.wso2.carbon.rule.service.ui.RuleServiceClientException

                String[] facts = ruleServiceAdminStub.getAllFacts(
                        ruleServiceDescription.getExtension(), serviceName);
                session.setAttribute(serviceName.trim(), facts);
                return facts;
            } catch (Exception e) {
                throw new RuleServiceClientException("Error getting all facts fro rule service : " +
                        serviceName, log);
            }
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.service.ui.RuleServiceClientException

        if (!ruleServiceDescription.isEditable()) {
            try {
                ruleServiceAdminStub.editRuleService(ruleServiceDescription.getExtension(),
                        serviceName, result);
            } catch (Exception e) {
                throw new RuleServiceClientException("Error editing rule service : " + serviceName,
                        log);
            }
        } else {
            try {
                ruleServiceAdminStub.addRuleService(ruleServiceDescription.getExtension(),
                        serviceName, result);
            } catch (Exception e) {
                throw new RuleServiceClientException("Error adding a new rule service : " +
                        serviceName, log);
            }
        }
    }
View Full Code Here

Examples of org.wso2.carbon.rule.service.ui.RuleServiceClientException

        try {
            OMElement omElement = ruleServiceAdminStub.getRuleService(name);
            return ServiceDescriptionFactory.create(omElement.getFirstElement(),
                    new AXIOMXPathFactory(), CONFIGURATION_EXTENSION_BUILDER);
        } catch (RemoteException e) {
            throw new RuleServiceClientException("Error retrieving rule service from name : " +
                    name, log);
        }
    }
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.