Running Static Assembler in utility mode
Run the Static Assembler from the /scripts/utils
directory
within the extracted application installation directory. This is the best practice because
the Static Assembler uses information that is in the application installation
directory.
- On your application server, extract the
StaticAssembler.zip
file from the/scripts/utils/
directory on the application distribution media to the same directory. - Create the
<pega.app.root>/WEB-INF/lib
directory. - In the
WEB-INF/lib
directory of theprweb.war
file or in theAPP-INFAPP-INF/lib
of theprpc_j2ee*.ear
file, locate the following JAR files:sr94-1.0.jar
prbootstrap.jar
prdbcdp.jar
prbootstrap-api.jar
- Copy the four JAR files to the
<pega.app.root>/WEB-INF/lib
directory. - In the
scripts/utils/staticAssemblerResources/config/prstaticassembly
directory,open theprstaticassembly.properties
file. - Specify the following properties.
Property Description pega.app.root Enter the full path to the <pega.app.root>
directory of your environment.Example for Windows:
After each backslash (\), include a backslash escape character (\).D:\\prpcmedia\\scripts\\utils\\pegaapprootpegaapproot
Example for Linux:
/opt/prpcmedia/scripts/utils/pegaapproot
application.name Enter the name of the application rule that is the starting point of the assembly process. Rules that belong to any built-on applications are also assembled. application.version Enter the version number of the application. accessgroup Enter the access group that provides access to the application version. path.prdeploy Optional. The default path is to the JAR file in the distribution image. path.antcontrib Optional. The default path is to the JAR file in the distribution image. Change the path to specify a different antcontrib
JAR file. - In the
scripts/utils/prpcUtils.properties
directory, open theprpcUtils.properties
file to define the connection to your database. - Specify the following variables that are specific for your database
vendor.
Variable Description pega.jdbc.driver.jar The full path to the JDBC driver JAR file. pega.jdbc.driver.class The Java class name of the JDBC driver. pega.database.type Select the database vendor from the list of supported vendors. pega.jdbc.url The URL connection for your database. Refer to the examples in the prpcUtils.properties
file.pega.jdbc.username The user name allowed to connect to the database. pegajdbc.password The password for the user name allowed to connect to the database. - Stop the application server.
- Run the
scripts/utils/smartStaticAssembly.bat
(or .sh) script to start the static assembly process. The Static Assembler analyzes the rule in the specific application and in the built-on application or applications and assembles any rules that have not yet been assembled. Processing can take from one to several hours. - When the assembly process is complete, you can view the result log in the
scripts/utils/staticAssemblerResources/logs/
directory.
Previous topic Preassembling rules in an application Next topic Running the Static Assembler in stand-alone mode