Creating an outer transaction graph

This topic describes how to create a graph to run outer transactions.

Before creating an outer transaction graph, create the step input file. See Format of the steps input file.

To create an outer transaction graph:

  1. Create a new graph in the project where you want to run graph in an outer transaction.
  2. Add the following components to the graph: Universal Data Reader (from the Readers section) and Transaction RunGraph (from the Discovery section).
  3. Edit the Universal Data Reader:
    1. In the File URL field, specify the steps input field in the data-in directory.
    2. Set the Number of skipped records per source to 1.
    3. Optionally, specify a Component name.
  4. Add an edge connecting the Universal Data Reader to the Transaction RunGraph component. Create a new metadata file for the edge using the Extract from flat file option and specifying the steps input file as the File URL.
  5. Edit the Transaction RunGraph component.
    1. Specify the Endeca Server Host and Endeca Server Port.
    2. In the Upon failure field, specify the action you want to component to take when a transaction fails. Options include:
      • Rollback

        Roll the data store back to the state it was in before the outer transaction started, then commit the transaction.

      • Commit

        Commit those changes that have been made successfully before the failure occurred, then commit the outer transaction.

      • Do nothing

        Stop processing changes, but do nothing more. The outer transaction is left open and running, which means you need to stop the outer transaction manually.

      For more information, see Committing or rolling back an outer transaction.

  6. Save the graph.