Skip to main content

Challenge

Deploying a solution using configuration files

3 Tasks

20 mins

Visible to all users
Beginner Pega Robotic Automation Robotic Process Automation English

Scenario

Now with the TrainingCertificationSln complete, you can deploy the solution to the pilot group for further testing. The pilot group has a different installation path of the CRM application, requiring the solution to be adjusted so it will run successfully. Also, to meet business and project needs, specific project properties require configuration and updates before you can create the deployment package.

Your Assignment

In this part of the solution, complete the following tasks:

  • Create a pilot configuration project file for the CRMPrj and the MainPrj.
  • Update the CRMPrj configuration file to change the CRM.os path from Program Files (x86) to Program Files.
  • For this exercise, complete the following on the Project Properties Deployment tab for the MainPrj project.
    Property Value
    Deployment Version 1.0
    Include Assemblies True
    Include Run Settings False
    Increment Deployment Version True
    Create Deployment Package True
    Output Path bin\Pilot\
  • Create a local deployment package of the MainPrj solution and validate that the packages exist for the pilot and general use.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Detailed Tasks

1 Create pilot configuration files

  1. In the Solution Explorer, right-click MainPrj and select Add > New Item to open the Add New Item window.
  2. In the Add New Item window, select Configuration to highlight the item.
  3. In the Name field on the Add New Item window, enter PilotConfig.
  4. On the Add New Item window, click Add to close the window and open the configuration file in the design area.
  5. Repeat steps 1-4 and add the PilotConfig configuration file to CRMPrj.
    deploy
  6. From the menu bar, select File > Save All to save the files.

Add a property configuration to the project configuration file

  1. In the Solution Explorer, double-click CRM.os to open the CRM adapter in the design area.
  2. In the Object Hierarchy, select CRM to update the Properties window.
  3. In the Properties window, locate the Path property.
  4. On the Path property, right-click the property and select Configure to open the Property Configuration window.
    path
  5. On the Property Configuration window, click in the New 'Path' property value field.
  6. In the New 'Path' property value field, enter C:\Program Files\Pegasystems\CRMSetup\CRM.exe.
    program files
  7. On the Property Configuration window, click OK to save the change to the configuration file.
  8. In the design area, click the PilotConfigu.os* tab to check the new path value. The value in the Properties window still displays as C:\Program Files (x86)\Pegasystems\CRMSetup\CRM.exe.
    crm path
  9. In the menu bar, select File > Save All to save the new property configuration.

2 Update the project properties for deployment

  1. In the Solution Explorer, right-click MainPrj and select Properties to open the MainPrj Properties in the design area.
  2. On the MainPrj Properties window, click Deployment to access the deployment properties.
  3. On the Deployment tab on the MainPrj Properties window, modify the properties by using the information in the following table.
    Property Value
    Deployment Version 1.0
    Include Assemblies True
    Include Run Settings False
    Increment Deployment Version True
    Create Deployment Package True
    Output Path bin\Pilot\
    deployment
  4. From the menu bar, select File > Save All to save the property changes

3 Deploy a solution

  1. From the menu bar, select Project > Deploy to open the Deploy Project window.
    Note: The list of Additional References may differ in your system.
    menu
  2. On the Deploy Project window, click in the Comment field and enter Created for pilot testing with new PilotConfig file.
  3. On the Deploy Project window, click OK to begin the deployment process. When the process completes, a Deployment Status window is displayed.
  4. On the Deployment Status window, click OK to close the status window.
  5. On the desktop, open Windows Explorer.
  6. In Windows Explorer, navigate to the C:\Users\{user id}\Documents\Pega Robot Studio\Projects\TrainingCertificationSln\MainPrj\bin\Pilot.

    In the Results frame of Windows Explorer, notice the two pairs of files — one for the general use and one for the Pilot.

    pilot


Available in the following mission:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

100% found this content useful

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice