Package org.candlepin.policy.js

Examples of org.candlepin.policy.js.RuleExecutionException


            log.warn("No method found: " + SELECT_POOL_FUNCTION);
            log.warn("Resorting to default pool selection behavior.");
            return selectBestPoolDefault(pools);
        }
        catch (RhinoException e) {
            throw new RuleExecutionException(e);
        }

        if (pools.size() > 0 && (result == null || result.isEmpty())) {
            throw new RuleExecutionException(
                "Rule did not select a pool for products: " + Arrays.toString(productIds));
        }

        List<PoolQuantity> bestPools = new ArrayList<PoolQuantity>();
        for (Pool p : pools) {
View Full Code Here


        try {
            result = objectMapper.toObject(json, ValidationResult.class);
            finishValidation(result, entitlementPool, quantity);
        }
        catch (Exception e) {
            throw new RuleExecutionException(e);
        }

        return result;
    }
View Full Code Here

                eventSinkProvider.get().emitCompliance(c, c.getEntitlements(), result);
            }
            return result;
        }
        catch (Exception e) {
            throw new RuleExecutionException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.candlepin.policy.js.RuleExecutionException

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.