Procedure for Reading in a Loop

Procedure

  1. Create a Parse Copybook Data activity.
  2. Set the appropriate fields under the General tab and choose File from the Input Type drop-down menu.
  3. Select the Parse Copybook Data activity and right-click to create a group that contains the Parse Copybook Data activity.

    For details on working with groups, see TIBCO ActiveMatrix BusinessWorks Process Design Guide.

  4. SpecifyRepeat as the Group Type and an index name, for example, i.
  5. Recommended. Create a loop condition that checks that the EOF output element value is true, for example:

    $ParseCopybookData/EOF=true()

  6. Set the noOfRecords input field for the Parse Copybook Data activity to the number of records you want to process for each execution of the loop.

    The loop processes noOfRecords as specified with each iteration until there are no more input records to parse.

Result

The preceding procedure is just a general guideline. You might want to also add other record-processing criteria or to change the XPath expressions to meet your needs. Also, feel free to adopt other means of flow control in ActiveMatrix BusinessWorks; just ensure that the fileName input element value stays the same.