Distribution Script

Once the flat files are created, they are moved to the source folder and a distribution script is created and placed in the source folder. The files are distributed to the servers and regions specified by the user in the Business Rules user interface.
Note: An empty table may be created. When building the table using a select on the view and no records are returned by the select, the table is produced with no data. The results of using this table in the Business Rules Server’s workflow is to always fail the lookup.
Figure 1. Business Rules User Interface Distribution Process
gpy_izwc_distributionui.jpg
  •  1  The operator issues the Activate command, which sends the XML script (Distribution Rule Configuration) to the Distribution Manager.
  •  2  The Distribution Manager reads in all descriptor XML files into an internal table.
  •  3  The Distribution Manager reads in all descriptor XML contents from the BR_XMLDESCRIPTOR table into the internal table. The DB2® view for each data descriptor (<viewName>) is used to read the database data and build the flat file tables. At the same time, a distribution script is built with all the descriptor files and tables.
  •  4  The files are placed into the source directory, where the standard distribution process takes over.
  •  5  Optional.