Beruflich Dokumente
Kultur Dokumente
After an application is developed, it is typically deployed on a test system or on a production system. To help you with the deployment process, Process Commander provides application rules and utilities to help you package an application and import it to the another system.
Note: These roles are functional descriptions; specific job and role titles in your organization may be different. For example, one individual may perform tasks for several roles, or more than one individual may perform a single role.
too. If you do need to move them, be sure to do so in the order that matches the dependency relationship. Also, ensure that these dependencies are maintained after uploading the application. Note: See "Step 6: Upload and Import Rules and Data" on page 4-31 for more information.
[HowTo]
Figure 4-10. Order of RuleSets The versions you enter designate the highest version within a revision level you want to export; the value you enter includes all lower revisions. For example, in Figure 4-10, the entries have the following meaning: ALL - Export all the versions belonging to the MyCo RuleSet. 02 - Export all versions equal to and lower than major version 02 of MyCoIns. 01-03 - Export all versions equal to or lower than minor version 01-03 of MyCoUtilities. 05-03-10 - Export all versions equal to or lower than 05-03-10 of Pega-ProCom.
Operator IDs (see Chapter 6) Organization (see Chapter 3, "Setting up the System") Divisions (see Chapter 3) Organization units (see Chapter 3) Workbaskets (see Chapter 3) Work groups (see Chapter 3)
Include other configuration and system-related classes used by the application, such as: Connector configurations (database, SOAP, JMS, and so on) Service configurations (SOAP, e-mail, and so on) Spellchecker properties Agents, nodes, and requestors
Caution: Ensure that any necessary database table maps are exported. If they are missing, data objects saved during application processing will be assigned by default to the pr_other table. Also, include Class Group records (Data-Admin-DB-ClassGroup), which can be used to help diagnose application-processing issues. See Chapter 5, "Managing the Data," for more information on table mapping.
Carefully consider any dependencies between data instances or between data instances and your rules. During uploading, data instances that are already present are not overwritten unless you specify that they should be.
[HowTo]
Figure 4-12. When Rule for a Product Archive The entire string in the Value field is: @(Pega-RULES:String).contains(.pxInsName, MYCO) You could also use this when rule for each data class that has instances you want to include in your product rule, as shown in Figure 4-13.
Information about the instance is set in the InsKey, Label, and ObjClass fields. You can edit the value of the Label field, but do not change the values in the InsKey or ObjClass fields. For example, Figure 414 shows the entry for an operator named sampleuser@samples.com:
2. 3.
The system displays the message "Getting records from the database. Please wait.", and then an inprogress display appears. (This step can take several minutes to finish.) 4. 5. 6. If there are errors, click on the Total Number of Errors link to display a list of them. Correct the errors and retry the export process. When the export process is successful (0 errors), click on the Zip File Created link to save the file to a local directory. To confirm that the operation was successful, use the Class explorer to examine the most recent instance of Log-PegaRULESMove.
Note: See "Using the Export Rules/Data Tool" on page 4-34 for more information.
3.
Select one or more of the following options as appropriate: Compile Libraries - Select this option when the RuleSet contains utility function or utility library rules, and you want the wizard to compile the libraries as soon as the rules are loaded. You can recompile all the libraries later by using the Extract Files option in the System Management application. Overwrite Existing Data - Select this option to overwrite with the data instance in the archive ZIP file any existing data instances with the same ID (pzInsKey) that are already present in this destination Process Commander database. Overwrite Existing Rules - Select this option to overwrite with the rule instance from the archive ZIP file any rule instances with the same RuleSet name, RuleSet version, and ID (pzInsKey) that are already present in the destination Process Commander database.
Note: See "About the Import Process" on page 4-37 for more information about using the Overwrite Existing Rules/Data options. 4. 5. Click Import. The import process may take several minutes. If there are errors, click Total Number of Errors in the lower-right corner of the display form to see the error message(s). Correct the errors and create a new ZIP archive file for import.
3. 4.
Enter the name of the RuleSet and the name of the library rule. Click Extract Libraries. Process Commander extracts the rule, generates Java source files for the rule, and compiles the source file into a Java class.
You can also use the tool to copy a previously created ZIP file from the Process Commander server to a local directory.
[HowTo]
By RuleSet/Version - To create a ZIP archive containing all rules in a RuleSet and Version (or all versions). By Product - To create a ZIP archive containing rules and data defined by an existing product rule (Rule-Admin-Product rule type). By Patch - To create a ZIP archive containing rules and data defined by an existing product page rules (Rule-Admin-Product-Patch rule type).
If you selected By RuleSet/Version, select a RuleSet and version from the lists in the RuleSet and RuleSet Version fields. Select a single version for that RuleSet, or All Versions. If you selected By Product, or By Patch, select the name and version from the field lists. Note that the product and patch rule version is not necessarily related to RuleSet Versions.
4.
5.
Enter a filename for your ZIP file in the File Name field. Use a file name that is valid for both the destination server and the current server; they may be hosted on different Windows or UNIX platforms. The ".zip" suffix is optional. Do not include spaces or an equals sign character (=) in the file name. Click Create ZIP File. The system displays the progress of the extraction, which may require one to several minutes. A progress bar shows the count of rules extracted.
6.
7.
If errors are reported, click the Total Number of Errors link in the lower right corner of the display form to see the error messages. You can print the list for later analysis. Errors are logged as instances of Log-PegaRULESMove-Error. To save the file to a local directly, click the Zip file created link. Choose Save in the pop-up window. (You can download the file later using the ZIP File on Server option.) Click Close.
8. 9.
[HowTo]
Note: The tool locates only files with the .zip extension in lowercase letters. 4. Specify a name and location for the downloaded file and click Save. The ZIP file is saved to your system.
See Step 6: Upload and Import Rules and Data on page 4-31 for a description of how to use the tool.
Step
1 2 3 4 5 6 7 8
Description
Check in rules to be deployed Run rule reports to confirm that the appropriate rules are checked in Lock the RuleSet versions Create a product rule Create a product archive ZIP file Upload and import the archive file to the system Verify the import (Optional) Rebuild libraries
Page
4-22 4-22 4-23 4-23 4-30 4-31 4-32 4-33
Figure 4-9. Application Deployment Steps The procedures on the indicated pages describe product rule deployment. Product patch rule deployment is similar, with the exceptions described on page 4-25.
Figure 4-22 illustrates the tasks involved in the first deployment and continuation of development. Note that the product archive also contains application data.
When subsequent rules and fixes need to be deployed to acceptance testing, create a product patch archive that stores all the rules of the new locked RuleSet (for example, APPRuleSet:01-01-02). A product patch contains only the rules from a single version of a RuleSet. You also need to adjust any data configurations and access to the new RuleSet Versions. Note: Access is discussed in Chapter 6 "Configuring Access Rights." This step involves four tasks: 1. 2. 3. 4. Lock the RuleSet to be deployed (APPRuleSet:01-01-02). Deploy a product patch ZIP file to capture only APPRuleSet:01-01-02 and any additional data. Upload and import the product patch for an acceptance test. Continue development.
Figure 4-23 illustrates the tasks involved in rule revision deployments and continuation of development. Note that the product patch archive also contains application data.
Figure 4-23. Rule Revision Deployments to Acceptance Testing Note: If there are large numbers of rule updates, you can choose to migrate the application in a product archive.
Figure 4-24. Final Deployment to Production Note: This example assumes that no previous applications are deployed on the production server.