Jump to: navigation, search

Deploying a Rules Package

Creating a rules package is the final step before you are ready to test your new application. Refer to the Application Development Tasks for details about the previous steps.

Rules are mandatory for managing actionable events generated from the System and Business event flows submitted by the Browser Tier. To add rules, you must create a package and then a set of rules. For details about rules, refer to the Genesys Rules System documentation.



After completing the steps on this page, the rules are deployed to the Web Engagement Servers.

Complete the following steps to create and deploy a rules package:

  1. If you need to map your rules to a particular domain, review Multi-Package Domain Oriented Rules.
  2. Creating a Rules Package
  3. Creating Rules in the Rules Package
  4. Deploying the Rules Package

Multi-Package Domain Oriented Rules

Genesys Web Engagement supports multi-package domain oriented rules. You can map your rules package to a particular domain by reversing the domain zone in the name of the rules package. For example, the blog.genesys.com domain would have a rules package called com.genesys.blog.

You can have multiple rules packages on the same server at the same time. New rules packages (with a different package name) that are deployed do not rewrite the current rules, but are instead added to the current rules set. When the existing rules package is deployed, it rewrites selected package rules in the current rules set.

This domain mapping is applied hierarchically - the "root" domain is processed by the "root" package and the sub-domain is process by the sub-package and all parent packaged (including "root").

For example, your website contains the following sub-domains:

  • genesys.com
  • blog.genesys.com
  • communication.genesys.com
  • personal.communication.genesys.com

And you have the following rules packages:

  • com.genesys
  • com.genesys.blog
  • com.genesys.communication
  • com.genesys.communication.personal

The rules packages are processed as follows:

Domain com.genesys com.genesys.

blog

com.genesys.

communication

com.genesys.

communication. personal

genesys.com + - - -
blog.genesys.com + + - -
communication.genesys.com + - + -
personal.communication.genesys.com + - + +
Important
This feature is turned off by default. You can turn on domain separation rule execution on the specified Web Engagement server by setting the domainSeparation option to true.

Creating a Rules Package

Complete the steps below to create the rules package associated with your Web Engagement application. This procedure is an example of how to create a rules package. For further information about creating rules, refer to the Genesys Rules System Deployment Guide.

Prerequisites


Start

  1. Open the Genesys Rules Authoring Tool and navigate to Environment > Solution > New Rule Package.
  2. In the General tab:
    • Enter a Package Name. For example, myproject.rules.products.
    • Enter a Business Name. For example, Products.
    • Select web_engagement for Package Type. WebEngagement_CEPRule_Templates appears in the Template table.
    • Optionally, you can enter a Description.
  3. Select WebEngagement_CEPRule_Templates in the Template table.

    Create a new rules package
  4. Click Save.

End

Creating Rules in the Rules Package

Prerequisites

Start

  1. In Genesys Rules Authoring Tool, select the rules package you created in the previous procedure.
  2. Select the Rules tab.
  3. Click New Linear Rule. This creates a new rule in the Rules table.
    Note: Web Engagement does not support GRAT Decision Tables. You must only use Linear Rules.
  4. Select the created rule:
    • Enter a Name. For example, Products.
    • Enter a Phase. The list of rule phases can be modified by changing the values of the Phases enumeration in the CEP Rules Template. The default value is *.
  5. Click Add Condition:
    • Scroll down to select a condition. For example, a page transition event occurs and belongs to category, which launches the actionable event any time that a user enters or leaves a page on your website.

      Select your rule's condition
    • Select a category in Parameters. For example, Products. The Parameters list displays the categories that you previously created.

      Set the condition's parameters
  6. Click Add Action and select an action in the list. For example, generate actionable event.
  7. Click Save....
    You can create as many rules as you need in your rules package.

End

Deploying the Rules Package

Prerequisites

Start

  1. In Genesys Rules Authoring Tool, navigate to Solution > your rules package > Deploy Rules.

    Deploy the rules package
  2. Select the checkbox next to your rules package in the Package Snapshots section.
  3. Click Deploy Now. The Deploy window opens.
  4. Select your Genesys Web Engagement Server for the Location.

    Deploy the rules package
  5. Click Deploy. The rules package is deployed to the Web Engagement system.

End

Next Steps

This page was last edited on March 10, 2020, at 13:56.
Comments or questions about this documentation? Contact us for support!