Example - Detect Initial Events and Act on Them

Run the IBM® Cognos® Event Studio ELM Returns Agent to detect the initial instances of products returned for specific reasons.

When these events are detected, the ELM Returns Agent does the following:

  • It runs the AssignStaff stored procedure.

    AssignStaff provides details about the sales representatives associated with each event instance, including the e-mail address.

  • It sends an e-mail to the appropriate sales representatives, advising them to contact their customer.
  • It runs the ELM Escalation Agent.

    The ELM Escalation Agent checks for returned product events flagged by the ELM Returns Agent. If one of these events still exists after two days, the ELM Escalation Agent sends an e-mail to the customer fulfilment manager.

Procedure

  1. In IBM Cognos Analytics, click Team content > Samples > Models > GO Sales (Query) > Event Studio Samples.
  2. Click the run with options button Run with options icon on the actions toolbar next to the ELM Returns Agent sample.
  3. Under Time, click Now.
  4. Under Prompt values, clear the Prompt for values check box.
  5. Click Run.
  6. Click OK.

Results

You receive two e-mails, originally intended for sales representatives Karen Bowman and Clarice Oliveira. The e-mail to Karen Bowman notifies her of one returned order. The e-mail to Clarice Oliveira notifies her of the three returned orders assigned to her.

The task execution rules for the ELM Returns Agent sample specify that all tasks are performed for new events only. If you do not receive any e-mails, the agent may already have run, so that none of the detected events are new. You can reset the event list so that when the agent runs next, all detected events have a status of new.

Tip: From the Actions menu, click Reset Event List.