Advanced merge using script

When using this type, a single input document is received. In the top branch additional information can be requested. The input parameters for the script are then defined either as an input document, patch document and its headers. The script is executed and the output parameters of the script are mapped to the output document.

All document types are supported in the Advanced merge, the Output document can be different from the Input document.

  1. Click Connect > Data Flows.
    A list of existing data flows is displayed.
  2. Select the document flow where the filter must be added.
  3. Click Details to open the data flow modeler.
  4. Add a Merge activity to the flow.
  5. Ensure that you select a single document in the document selection for delivery from preceding activity.
  6. Add an activity or multiple activities to the Merge component.

    You can add one or more activities in the top branch. These activities can use ION API CP – Trigger, Mapper, Scripting, Merge.

    You cannot add any activities in the bottom branch.

    Document selection after merge activity is read only. The document is automatically populated based on the Merge configuration.

  7. Click the Properties tab.
  8. Specify an activity name.
  9. Optionally, specify an activity description.
  10. Select the Advanced merge using script Merge type.
  11. Select a script from the Script drop-down list or create a new one.
    All scripts cannot be used in the Advanced Merge. The script inputs must be able to receive at least two input documents, string or binary. Or at least one input document, string or binary, and one header structure (string). The script output must be able to produce at least one output document, string or binary.