Use case 3 - Create a promotional offer for the iPhone
In this use case, we are going to create a promotional offer for the iPhone 12. The mobile phone company only want to show the offer to customers who meet the following criteria:
- Customer does not already have an iPhone 12
- Customer has shown interest in the iPhone during the last 30 days
We will build a separate eligibility rule for each of the criteria specified and combine those into a single eligibility rule.
Example 1 - Customer does not already have an iPhone 12
[Completed for iPhone 12] is emptyWhere the parameters for Completed are as follows:
Proposition name equals iPhone 12
Example 2 - Customer has shown interest in iPhone 12 recently
sum of the elements in [Activity count for iPhone 12 search for info]) > 1 and time between now and Last occurrence for iPhone 12 search for info in days < 30Where the parameters for Activity count and Last occurrence are as follows:
Proposition name equals iPhone 12
Example 3 - Combined eligibility rule
Customer does not have an iPhone 12 AND Customer is interested in an iPhone 12