Package org.milyn.rules

Examples of org.milyn.rules.RuleEvalResult


    {
        if(ruleProvider == null) {
            setRuleProvider(executionContext);
        }

        final RuleEvalResult result = ruleProvider.evaluate(ruleName, text, executionContext);

        if(logger.isDebugEnabled()) {
            logger.debug(result);
        }

        if (!result.matched())
        {
            ValidationResult validationResult = getValidationResult(executionContext);
            OnFailResultImpl onFailResult = new OnFailResultImpl();
            onFailResult.setRuleResult(result);
            onFailResult.setBeanContext(executionContext.getBeanContext().getBeanMap());
View Full Code Here


        final ValidationResult results = Main.runSmooks(messageIn);

        System.out.println("\n==============Validation Result=======");
        System.out.println("Errors:");
        for (OnFailResult result : results.getErrors()) {
          RuleEvalResult rule = result.getFailRuleResult();
            System.out.println("\t" + rule.getRuleName() + ": " + result.getMessage());
            System.out.println("\tSwedish:");
            System.out.println("\t" + result.getMessage(new Locale("sv", "SE")));
        }

        System.out.println("Warnings:");
View Full Code Here

TOP

Related Classes of org.milyn.rules.RuleEvalResult

Copyright © 2018 www.massapicom. 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.