Expressional Inference Rule Engine Add-on FAQ

Bloomreach offers Enterprise support for this feature to Bloomreach Experience customers. The release cycle of this feature may differ from our core product release cycle. 

FAQ

How to Use Expressional Inference Rule Engine Programmatically?

If you want (e.g., you want to infer goal value by rule document in either authoring tier or delivery tier instead of hard-coded way), you can also access the Expressional Inference Rule Engine programmatically like the following example:

  // You can get the InferenceEngine through HippoServiceRegistry.
  InferenceEngine inferEngine = HippoServiceRegistry.getService(InferenceEngine.class);
  // Or in delivery tier, you can access it through HstServices.getComponentManager() too:
  inferEngine = HstServices.getComponentManager().getComponent(InferenceEngine.class.getName(), InferenceEngineModule.MODDULE_NAME);

  if (inferEngine != null) {
    Object goalValue = inferEngine.executeInference(RULES_DEMO_VISITOR_INTEREST_TYPE);
  }

.

 

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?

    We rely on cookies

    to optimize our communication and to enhance your customer experience. By clicking on the Accept and Close button, you agree to the collection of cookies. You can also adjust your preferences by clicking on Manage Preferences. For more information please see our Privacy policy.

    Manage cookies
    Accept & close

    Cookies preferences

    Accept & close
    Back