Creating batch jobs using the addTask transaction

You can create a new batch job by submitting an addTask transaction XML request.

About this task

Note: For more information, see the addTask transaction reference documentation.

A single batch job can contain any number of records.

An addTask request to create a new batch job must have the following attributes and business objects:

  • a TaskBObj in the Bulk Processing category
  • <TaskDefinitionId>80</TaskDefinitionId>
  • <TaskCatType>8</TaskCatType>
  • TaskCommentBObj
  • WorkbasketBObj
Note: In the TaskCommentBObj object, the CommentText attribute must be in XML format with the desired criteria and search directives for the entities that you wish the batch processor to process.

To define a new batch job using addTask:

Procedure

  1. If they are not already defined, add a new record in the CdMetadataInfoTp code table to provide the appropriate search table and column information.
  2. Add a new TaskDefinitionId with role associations. Batch job definitions must include:
    • A task name
    • The XML request template for the related InfoSphere® MDM transaction (in task_launch_action_data)
    • A metadata information type
    • A task category type
    • At least one task owner role
    Note: After you have completed these steps, and subsequent new batch jobs linked to the same TaskDefinitionId will be automatically handled by the next available instance of the batch processor that has been configured for this batch job type.