In this example, you create a business rule that sends
a push notification when the severity of an incident is set to High.
Before you begin
You must create and deploy the object event handler before
creating the business rule.
Procedure
-
In Oracle Service Cloud, click the Configuration button on the navigation pane.
-
Under Site Configuration, double-click Rules.
The Rules Designer opens.
-
Make sure that Incident is selected
in the ribbon.
Incident is the default object.
-
Right-click the Initial state (or
the state that is designated as the initial state) and select New Rule.
-
Name the rule Android Push Notification.
-
Under Add Options, select .
The If condition appears.
-
From the operator drop-down menu, choose equals.
-
Select High from the list of severities.
-
Under Add Options, select .
The Then condition appears.
-
Select gcm_incident from the drop-down
menu.
-
Click Save to save the business
rule.
-
Click Compile to compile the rule
base (entire sets of rules for the Incident object).
If compilation is successful, you will receive the message: Rulebase compiled with no errors.
-
Click OK to close the message.
-
Click Activate to make the rule
base active.
A message appears to tell you that the rule base is activated.
-
Click OK to close the message.
Results
Push notifications are now active. When an incident’s severity
is set to High, a push notification will be sent to the Android device.