Welcome to Zuora Product Documentation

Explore our rich library of product information

Add your transitions

Learn how to add transitions between user states based on specific criteria, including page views and subscriptions.

For this example, let's add four transitions:

  • Bi-directional transition between Registered User and Engaged - Criteria: Five or more page views in a day.
    1. Drag from a white circle on the Registered User state to a white circle with an arrow inside on the Engaged state.

    2. In the New Criteria dialog box, select Page Viewed from the Transition Criteria menu.

    3. Select More Than, enter 5 in the Page Views field, and select Day from the In a options.

    4. Select the Bi-directional button from the Flow section.

    5. Click Save.

  • Bi-directional transition between Registered User and VIP - Criteria: Ten or more page views in a day and a Gold subscription.

    1. Drag from a white circle on the Registered User state to the VIP state.

    2. In the New Criteria dialog box, select Page Viewed from the Transition Criteria menu.

    3. Select More Than, enter 10 in the Page Views field, and select Day from the In a options.

    4. Click the + icon to add another criterion.

    5. Select Has Product, choose Select Product, and check the box for Gold.

    6. Select the Bi-directional button from the Flow section.

    7. Click Save.

  • One-way transition from Engaged to VIP - Criteria: Ten or more page views in a day and a Gold subscription.

    1. Drag from a white circle on the Engaged state to the VIP state.

    2. In the New Criteria dialog box, select Page Viewed from the Transition Criteria menu.

    3. Select More Than, enter 10 in the Page Views field, and select Day from the In a options.

    4. Click the + icon to add another criterion.

    5. Select Has Product, choose Select Product, and check the box for Gold.

    6. Select the Bi-directional button from the Flow section.

    7. Click Save.

  • Bi-directional transition between Registered User and Lapsed - Criteria: No views in the last week.

    1. Drag from a white circle on the Registered User state to the Lapsed state.

    2. In the New Criteria dialog box, select Page Viewed from the Transition Criteria menu.

    3. Select Less Than, enter 1 in the Page Views field, and select Week from the In a options.

    4. Select the Bi-directional button from the Flow section.

    5. Click Save.

Your user state map is similar to the following:

Finally, click Save under the user state map canvas to save the transitions you have created.

We are now ready to add our states to a rule . In this example, we are going to use a sub rule to reduce the complexity of our main rule.