Table of Contents

Search

  1. Preface
  2. Taskflows and linear taskflows
  3. Taskflows
  4. Linear taskflows

Taskflows

Taskflows

Taskflow example

Taskflow example

You can add multiple data integration tasks to a taskflow and run them sequentially or in parallel.
The following example shows how to create a taskflow to run two
mapping
tasks in parallel. The example assumes that you know how to create a connection, a mapping, and a
mapping
task.
This example uses the following sample
mapping
tasks:
  • A
    mapping
    task that maps a flat file database to a flat file database.
  • A
    mapping
    task that maps a MySQL database to a flat file database.
Perform the following steps to create a taskflow and monitor the progress of the taskflow:
  1. From the top menu bar, select
    Data Integration
    .
  2. Click
    New
    Taskflows
    Taskflow
    Create
    .
  3. Select
    Start
    and enter the following General properties:
    Property
    Value
    Name
    Taskflow2MT
    Location
    Click
    Select
    and browse to the location where you want to save the taskflow.
    Description
    Taskflow to run two
    mapping
    tasks in parallel
    The image shows the General properties of a taskflow.
    For this use case, you do not need to enter
    Input Fields
    ,
    Temp Fields
    or
    Notes
    properties.
  4. Drag a Parallel Path step onto the canvas.
    You see a Parallel Path step with two branches.
  5. To add Data Task steps, drag Data Task steps from the left pallette to each branch of the Parallel Path step.
  6. Select the first Data Task step and then perform the following steps:
    1. Go to
      Properties
      Data Task
      and click
      Select
      . You see a dialog box with a list of
      mapping
      tasks. Select the task you want to use in the first Data Task step and then click
      Select
      .
    2. Go to
      Properties
      General
      and enter a name for the Data task step in the
      Name
      field.
  7. Repeat the preceding step for the Data Step in the second Parallel Path branch.
  8. Select the Parallel Path step and go to
    Properties
    General
    , and enter a name for the step in the
    title
    field.
  9. Go to
    Parallel Path Properties
    Parallel Paths
    . You see that the Taskflow has set path 0 and path 1 of the Parallel Path step:
    The image shows the parallel path properties section with branch one populated with the first mapping and branch two populated with the second mapping.
  10. Click
    Save
    from the upper-right corner of the page.
    The following image shows the complete taskflow:
    The image shows the complete taskflow that runs two mapping tasks in parallel.
  11. If you do not see any validation errors, click
    Run
    .
    If you see validation errors, use the Validation panel to trouble shoot the taskflow.
  12. To verify that the taskflow is complete, check the
    All Jobs
    page in
    Monitor
    or the
    My Jobs
    page in
    Data Integration
    .

0 COMMENTS

We’d like to hear from you!