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

Adding Tasks

You can add multiple tasks to an agent. However, you can specify only one event condition per agent. Each task is performed for the event list that meets the execution rules you specify for the task . The agent performs tasks in the order that you add them, unless you change their order later . You can save an agent and add additional tasks to it later.

Previous Function

You can add source items or data items to some types of tasks. When the agent performs the task, it uses the current value of the item. If you want the agent to use the value that a particular item had the previous time the agent ran, you can insert the previous function before the item.

To insert the previous function, from the Insert menu, click Previous Value.

Add an Email Task

Add an email task to an agent to send an email about an event. Email tasks enable you to send an email with the content you want to the recipients you want.

For more information, see Example - Add an Email Task.

You can also add other types of tasks . Email tasks share some similarities with report tasks. For more information, see Email Notifications.

Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Send an email.

  3. In the To box, and if applicable, in the Cc or Bcc boxes, enter the email addresses of the recipients using one or more of the following methods:

  4. In the Subject box, type the subject of the email.

    Tip: You can also drag items from the source tab or from the data items tab. When the agent runs, the current value in the package replaces the data item for each event instance.

  5. In the Body box, type the email message text directly or drag items from the source tab or from the data items tab.

    If you insert data items in the Body box, the body message will be longer. When the agent runs, the current value in the package replaces the data item for each event instance. For more information, see How Multiple Events Affect Email Messages.

    If the email has a single HTML attachment and the Body box is empty, the attachment appears inline.

  6. To change the message format from HTML to plain text or vice versa:

  7. To add attachments, click Attach and choose the attachments:

  8. To add links, click Add links, select the entries you want, click the arrow button to update the Selected entries list, and click OK.

  9. Under Run this email for the events, review the event status that will cause the email to be sent.

    Tip: If you want to change this event status, you can edit the task execution rules .

  10. From the File menu, click Save .

You can preview the email task . When the agent runs, it retrieves values for all source and data items and sends the email to the recipients you chose.

Add a News Item Task

Add a news item task to an agent to publish a headline to a folder in IBM Cognos Connection.

For more information, see Example - Add a News Item Task.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

Steps
  1. In IBM Cognos Connection, create a new folder or portlet.

    For more information, see the IBM Cognos Connection User Guide.

  2. In Event Studio, specify an event condition .

  3. In the I want to area, click Add a task.

  4. Click Publish a news item.

  5. In the Headline box, type the text you want to appear at the top of your news item.

    Tip: You can also drag items from the source tab or the data items tab.

  6. To add a description in the Screen tip box and in the Text box, type a description of the entry.

    The screen tip is limited to 100 characters.

    Tip: You can also drag items from the source tab or from the data items tab.

  7. Under Link to, choose an object to appear when you click a news headline:

  8. Under News list location, click Select a location, go to the folder or portlet in which the news item will be published and click OK.

  9. Under Publish this news item for the events, review the event status that will cause the news item to be published.

    Tip: If you want to change this event status, you can modify the task execution rules .

  10. From the File menu, click Save .

You can preview the news item task . When the agent performs the news item task, it publishes the news headline to the location you chose. When you click the headline, the IBM Cognos 8 entry or the Web page you linked to appears.

The description text appears when you set your IBM Cognos Connection preferences to use the details view. The screen tip appears when you pause your pointer over the icon for the entry in the news list location.

Add a Report Task

Add a report task to an agent to run a report that is related to an event.

For more information, see Example - Add a Report Task.

You can also add other types of tasks . Email tasks share some similarities with report tasks. For more information, see Email Notifications.

Before you add any type of task, you must specify an event condition .

You must have permissions to run the report that you select. For more information, see the Report Studio Professional Authoring User Guide.

Steps
  1. In the I want to area, click Add a task.

  2. Click Run a report.

  3. In the Select the Report dialog box, specify the report, query, analysis, or report view to include in the agent.

  4. To customize the report, under Options, click Set and make the necessary changes .

  5. If the report includes parameters, under Prompt values, choose how to specify prompt values for each parameter:

  6. Under Run this report for the events, review the event status that will cause the report to run.

    Tip: If you want to change this event status, you can modify the task execution rules .

  7. From the File menu, click Save .

You can preview the report task . When the agent performs the report task, it runs the report and delivers it according to the delivery options you chose .

Customize the Report

You can change the report options from the default options to customize the report for your audience:

Default options are set by the report author. You can change some default run options for reports.

You change the report options when you click Set or Edit in the Specify the report to run dialog box. For more information, see Add a Report Task.

Setting the report options for a report task in Event Studio is similar to running a report with options in IBM Cognos Connection. For more information, see the IBM Cognos Connection User Guide.

Steps
  1. In the Select the report options dialog box, select the Override the default values check box.

  2. Under Formats, click the formats you want for the report output.

  3. To select different or additional languages for the report, click Select the languages and use the arrow keys to move the available languages to the Selected languages box and click OK.

    Tip: To select multiple languages, press Ctrl+click or Shift+click.

  4. Under Delivery, choose a delivery method:

  5. If you clicked Send the report by email, click Edit the options to specify what you want:

  6. Under Bursting, specify whether the report should be bursted.

    This option is available only if the report author defined burst keys in the report.

  7. Click OK.

    The Specify the report to run dialog box appears.

  8. Continue specifying the report. For more information, see Add a Report Task.

Add a Job Task

Add a job task to an agent to run a job. A job identifies a collection of reports, report views, agents, and other jobs that are scheduled together and share the same schedule settings. For more information, see the IBM Cognos Connection User Guide.

For example, in IBM Cognos Connection, you create a job named Two Reports, and select two reports that you want the job to run. In Event Studio, you add a job task and select the Two Reports job. When the agent runs and detects events that meet the task execution rules, it runs the Two Reports job.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

Before you create a job task, you must create a job in IBM Cognos Connection. For more information, see the IBM Cognos Connection User Guide.

Steps
  1. In the I want to area, click Add a task.

  2. Click Run a job.

  3. In the Select the job dialog box, specify the job to include in the agent.

  4. Under Run this job for the events, review the event status that will cause the job to run.

    Tip: If you want to change this event status, you can modify the task execution rules .

  5. From the File menu, click Save .

You can preview the job task . When the agent performs the job task, it runs all the IBM Cognos 8 items identified in the job.

Add an Agent Task

Add an agent task to an agent to run another agent. By running multiple agents in sequence, you can use the output from one agent as the input to another agent. You can also use multiple agents that interact with each other using data retrieved from different data sources. This removes the need to join databases using Framework Manager.

For more information, see Example - Adding an Agent Task.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Run an agent.

  3. In the Select the agent dialog box, choose an agent.

  4. If the task includes parameters, under Prompt values, choose how to specify prompt values for each parameter:

    Tip: If you want to clear the prompt values and return to the default values, click Reset to default.

  5. Under Run this agent for the events, review the event status that will cause the agent to be run.

    Tip: If you want to change this event status, you can modify the task execution rules .

  6. From the File menu, click Save .

You can preview the agent task . When the agent performs the agent task, it runs the agent you specified.

Example - Adding an Agent Task

You want to run the high_returns_followup agent to detect a high rate of returned items and resolve the related issue. However, for each item that has a high rate of return, you also want to check the importance of the customer to your company as calculated from data in a data warehouse system. The customer’s importance value is calculated using projected sales and profit data.

You create a second agent named high_returns_customer_check that is run by the high_returns_followup agent. When a high return event occurs, the high_returns_followup agent runs and passes customer details to the high_returns_customer_check agent. The high_returns_customer_check agent then runs a query to check the customer importance value. If the customer importance value is high, the high_returns_customer_check agent sends an email asking the customer services agent to contact the customer and fix the problem immediately.

Add a Database Update Task

Add a database update task to an agent to run stored procedures that exist in a database. A stored procedure takes arguments as input and updates the database. The database that contains the stored procedures can be different from the database in the package that the agent is monitoring.

For information about running stored procedures, see the Administration and Security Guide.

You can also add other types of tasks .

A stored procedure is accessible in Event Studio only if it was marked as a data modification type in Framework Manager. If the input parameters to the stored procedure task are unavailable, check how your procedure has been modelled. For more information, see the Framework Manager User Guide.

Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Update a database.

  3. Under Package, click the package to use to update the database.

  4. Under Data modification stored procedure, click a stored procedure that exists for the package you selected.

  5. If the stored procedure includes arguments, under Arguments, choose how to specify values for each argument:

    Tip: To clear the argument values and return to the default values, click Reset to default.

  6. Under Update the database for the events, review the event status that will cause the stored procedures to run.

    Tip: If you want to change this event status, you can modify the task execution rules .

  7. From the File menu, click Save .

You can preview the database update task . When the agent performs the database update task, the stored procedures are run and the database is updated.

Add a Web Service Task

Use a Web service task to trigger an external process. Web services let software programs interact with one another using standard Internet protocols, so interaction is not dependant on operating system or program language compatibility. Web services also work well in a distributed environment because they use URLs to reference programs.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

When you specify the Web service URL, Event Studio calls a Web server and requests the Web Services Description Language (WSDL). This shows you the Web service input and output parameters.

Steps
  1. In the I want to area, click Add a task.

  2. Click Advanced.

  3. Click Call a Web service.

  4. In the Web service URL box, type the URL of the Web service.

    If the URL points to a Web site address, you must include the protocol, such as http.

  5. Click Retrieve.

    The available Web service operations are retrieved.

  6. Under Operation, click the Web service operation you want to perform.

    The available method and the list of arguments is retrieved.

  7. If the operation includes arguments, under Arguments, choose how to specify values for each argument:

    Tip:To clear the argument values and return to the default values, click Reset to default.

  8. Under Call the Web service for the events, review the event status that calls the Web service.

    Tip: If you want to change this event status, you can modify the task execution rules .

  9. From the File menu, click Save .

You can preview the Web service task . When the agent performs the Web service task, it calls the Web service and runs its service.

Example - Adding a Web Service Task

You want to notify customer service representatives and suppliers about orders that have a high rate of return. You could do this by adding an email task. For more information, see Example - Add an Email Task. However, you know that some of the service representatives and suppliers do not have access to email. You also know that they all closely monitor the Customer Relationship Management (CRM) system.

You decide to notify the service representatives and suppliers by creating records in the CRM system. Each record is linked to a customer name and to the type of product that was returned. Your company developed a Web service that creates CRM records. In Event Studio, you add a Web service task that calls your company’s Web service.

When the agent performs the Web service task, the Web service updates the profile of customers who returned products. An updated customer profile can improve your sales performance in two ways:

Add an Export Task

Add an export task to an agent to export entries to a deployment archive. The export is defined in IBM Cognos Connection. For more information, see the IBM Cognos 8 Administration and Security Guide.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Run an export.

  3. In the Select the export dialog box, specify the export to include in the agent.

  4. Under Run the export for the events, review the event status that runs the export.

    Tip: If you want to change this event status, you can modify the task execution rules .

  5. From the File menu, click Save .

You can preview the export task .

Add an Import Task

Add an import task to an agent to import entries from a deployment archive to your target environment. The import is defined in IBM Cognos Connection. For more information, see the IBM Cognos 8 Administration and Security Guide.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Run an import.

  3. In the Select the import dialog box, specify the import to include in the agent.

  4. Under Run the import for the events, review the event status that will run the import.

    Tip: To change this event status, you can modify the task execution rules .

  5. From the File menu, click Save .

You can preview the import task .

Add a Content Maintenance Task

Add a content maintenance task to an agent to run a content maintenance task created in IBM Cognos Connection. A content maintenance task searches the content store for user information that no longer exists in your external namespaces. It can also fix the content store by deleting any users that do not exist in your external namespaces. For more information, see the IBM Cognos 8 Administration and Security Guide.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Run a content maintenance task.

  3. In the Select the content maintenance task dialog box, specify the content maintenance task to include in the agent.

  4. Under Run the content maintenance task for the events, review the event status that runs the content maintenance task.

    Tip: To change this event status, you can modify the task execution rules .

  5. Under Mode, choose whether to find or find and fix problems:

  6. From the File menu, click Save .

You can preview the content maintenance task .

Add a Metric Task

Add a metric task to an agent to run tasks that are available in a metric package. For example, you can clear metric history data from the data store or you can import data from files into a staging area. For more information, see the Metric Studio User Guide.

You can also add other types of tasks .

Before you can open a metric package, you must install IBM Cognos 8 Metrics Manager. For more information, see the IBM Cognos 8 Metrics Manager Quick Start Installation and Configuration Guide. Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Metric Task.

  3. In the Select the metric task dialog box, specify the metric task to include in the agent.

  4. Under Run the metric task for the events, review the event status that runs the metric task.

    Tip: To change this event status, you can modify the task execution rules .

  5. From the File menu, click Save .

You can preview the metric task .

Add a Planning Macro Task

Add a planning macro task to an agent to run Contributor macros when specified conditions are met. A planning macro is created in IBM Cognos 8 Planning - Contributor to automate tasks such as loading import data and publishing data. For more information about planning macros, see the IBM Cognos 8 Planning - Contributor Administration Guide.

You can also add other types of tasks .

Before you add any type of task, you must specify an event condition .

Steps
  1. In the I want to area, click Add a task.

  2. Click Advanced.

  3. Click Run a planning macro task.

  4. In the Select the planning macro dialog box, specify the task to include in the agent.

  5. Under Run the planning macro task for the events, review the event status that runs the task.

    Tip: If you want to change this event status, you can modify the task execution rules .

  6. From the File menu, click Save .

You can preview the task .