To use IBM Cognos product documentation, you must enable JavaScript in your browser.

Example - Specify an Event Condition

You want the agent to detect cases where the actual value of returned products is greater than the threshold value that the person running the agent defines.

Also, you want to see what parameter value would return an event list of between 5 and 10 items from the current data.

Steps
  1. Click the Detail tab.

  2. In the Insertable Objects area, click the source tab .

  3. Expand Returned items (query).

  4. Under Returned items (query), expand Returned items.

  5. Click the Return quantity measure item, and drag it to the end of the expression.

  6. After the source item you just inserted, type

    > 0 and

  7. On the data items tab , click the order_item_return_value_calc calculation that you defined previously , and drag it to the end of the expression.

  8. At the end of the expression, type a greater than symbol:

    >

  9. Click the parameters tab , click the total_return_value parameter that you defined previously , and drag it to the end of the expression.

  10. At the end of the expression, type

    and

  11. On the source tab, under Returned items (query), expand Return reason.

  12. Click Reason description, and drag it to the end of the expression.

  13. At the end of the expression, type

    in

  14. If you want to include only the description types you want, do the following:

    The detail expression appears as follows:

    [Return quantity]>0 and [order_item_return_value_calc]>?total_return_value_for_item? and [Reason description] in ('Defective product','Incomplete product','Unsatisfactory product')

  15. Do the following to see whether an event list of between 5 and 10 items is returned when the total return value calculation exceeds $17,000:

    The next step in the creating an agent tutorial is to add a report task.