Distribution script

After 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 that are specified by the user in the Business Rules user interface. If the buildtables command is run from the command line, the files are distributed to all regions and servers.
Note: An empty table might be created. When a table is built by using a select on the view and no records are returned by the select, the table is produced with no data. The result of using an empty table in a Business Rules Server workflow is to always fail the lookup.
Figure 1. Business Rules user interface distribution process
gpy_izwc_distributionui.png
  •  1  The operator issues the activate command, which sends the XML script (distribution rule configuration) to the Business Rules Manager.
  •  2  The Business Rules Manager reads in all descriptor XML files into an internal table.
  •  3  The Business Rules 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  Optionally, PVR files are built to send to CPCS.