Creating Criteria that Evaluate Roundtrips

This type of criteria checks whether a flight transaction is a part of a roundtrip. If the roundtrip has been completed, then the criterion evaluates to TRUE, and the member receives the bonus that is defined in the Action list for this rule.

To create this sort of promotion based on a roundtrip, you must first create a promotion specific attribute to evaluate the roundtrip. Next, you must also create a second rule that has no criteria and only invokes the Update Roundtrip Info action. This second rule updates the roundtrip information whenever there is a transaction that completes a segment of this roundtrip. This second rule must be written so it updates the object and attribute that you specify in the To Recorded Roundtrip Info Object and the To Recorded Roundtrip Info Attribute fields of the criteria for the first rule.

To create criteria that evaluate roundtrips

  1. Navigate to the Loyalty Promotions Administration screen.

  2. In the Promotions list, find the promotion for which you want to create criteria and click the hyperlink in its Promotion Number (#) field.

  3. If the promotion form’s Active check box is selected, then click Modify.

  4. Click the Rules view tab.

  5. Select a rule and click its Name field hyperlink.

  6. Add one or more new records to the Criteria list, and complete the necessary fields in the Criteria list record and its Detail form. Some fields are described in the following table.

    Section Field Description

    N/A

    Sequence Number (#)

    Displays the sequence in which criteria are evaluated. To optimize performance, you can change the sequence so the criteria that eliminate most records are evaluated first, leaving fewer records for the remaining criteria to read through. (The sequence does not affect whether the rule qualifies, because all criteria must be true for the rule to qualify.)

    N/A

    Type of Comparison

    Select Evaluate Roundtrip.

    Compare Transaction Roundtrip Info

    Object

    Displays Transaction. This field is read-only, because the Evaluate Roundtrip comparison must be based on transactions.

    Compare Transaction Roundtrip Info

    Attribute

    Enter the transaction attribute that has the roundtrip information.

    To Recorded Roundtrip Info

    Object

    Enter the object in which the engine must store the information about the segments of the roundtrip that have already been completed.

    To Recorded Roundtrip Info

    Attribute

    Enter the attribute on the object that stores information about completed segments information which has this information in an engine readable format.

  7. Add a record to the Values list, and enter the airports that are the origin and destination of the roundtrip in the form XXX YYY, where XXX and YYY are airport codes.

    For example, for a roundtrip between the San Francisco and Los Angeles airports, enter SFO LAX.