Skip to main content

Configuring parallel processing

4 Tasks

20 mins

Visible to: All users
Intermediate Pega Platform '23 Case Management English


At TGB, candidates for an open position are interviewed by multiple team members. The existing interview Process in the HRApps application only allows for one interviewer. The Human Resources (HR) department has requested this Process be updated to support more than one interviewer for a candidate.

The following list includes the recommended tasks for completing this assignment.

  • Create a new Embedded Data field to hold the list of interviews, and add an empty entry to the list.
  • Update the ScheduleInterview_0 Section to add a table sourced by the Interviews property to enable adding and removing interviews. In the table, include the existing InterviewSchedule Section to display the interview information.
  • Replace the ConductInterview subprocess with a Split For Each shape configured to call the ConductInterview flow for each interviewer.
  • Rename the ScheduleInterview Assignment and Flow Action to reflect multiple interviews.
  • Update the Assess Candidate screen for the user to view the feedback from all the interviewers.
Note: The ConductInterview flow is in the Interview data class and thus is not impacted by changing from the use of a page to a page list.

The following table provides the credentials you need to complete the challenge.

Role User name Password
Senior System Architect SSA@TGB pega123!
Note: Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.

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

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

Challenge Walkthrough

Detailed Tasks

1 Create a page list property and edit pySetFieldDefaults Data Transform

  1. In the Pega instance for the challenge, enter the following credentials:
    1. In the User name field, enter SSA@TGB.
    2. In the Password field, enter pega123!.
  2. In Dev Studio select the Candidate Case Type. In the Data Model tab, create a multiple records Embedded Data field named Interviews that is sourced from the existing data object TGB-HRApps-Data-Interview.
  3. In the Candidate Case Type Data Transform pySetFieldDefaults, add a row to initialize a property in the Interviews list to display an empty entry in the list when the screen is displayed.
    Tip: To add a default entry to the list, initialize an element in the list item (for example, .Interviews(1).Location = "").

2 Update the ScheduleInterview_0 Section to add a table

  1. In the ScheduleInterview_0 Section, add a Dynamic Layout.
  2. In the Dynamic Layout, create a text label named Interviews.
  3. Under the Dynamic Layout, add a Table layout and open the Layout Properties dialog box.
    Note: You can use an embedded table or a Repeating dynamic layout in the ScheduleInterview_0 Section. It is a Pega best practice to use a Repeating dynamic layout when displaying images or other dynamic content. Because the ScheduleInterview_0 Section does not include images or other dynamic content, this challenge uses an embedded table.
  4. On the General tab, set the table source as the .Interviews list property.
  5. On the Operations tab of the table, set Row editing to Inline and Inline edit mode to Rows always editable.
  6. On the Embedded Section TGB-HRApps-Data-Interview.InterviewSchedule, click the selection handle and drag the Section to the first column, second row of the table.
    Note: The table displays a column heading cell above the first row.
    Parallel processing Schedule Interview section rule
  7. Save the ScheduleInterview_0 Section.

3 Edit the InterviewCandidate_0 flow to add a Split for Each shape

  1. In the Candidate Case Life Cycle, in the Interview Candidate Process, click the Configure Process icon.
  2. Click Open Process to open the Process flow.
  3. Add a Split for Each advanced shape.
  4. In the Split For Each properties window, configure the details as shown in the following image by using the .Interviews property and the ConductInterview subflow.
    Split for each shape properties
  5. Replace the existing Conduct Interview subprocess shape with the Split For Each smart shape.
    Schedule interview flow
  6. Save the flow changes.

4 Edit the AssessCandidate_1 Section and AssessmentRating declare Expression

  1. In the AssessCandidate_1 Section, add a Table layout to the bottom of the Section.
  2. On the General tab of the table Layout properties window, configure the properties as shown in the following image.
  3. From the Structural menu, drag an Embedded Section to the second row of the table.
  4. Click the Gear icon to open the Cell Properties dialog box.
  5. In the Source field, enter or select InterviewFeedback.
  6. Delete the second dynamic layout. 
    parallel processing Assess Candidate section rule
  7. Save your changes to the Section.
  8. Update the AssessmentRating declare Expression to calculate the average of all interview ratings.
    Tip: Use the Average of computation type to calculate the average value for a property in a page list. Leave the using entries in which field blank.
    Parallel processing declare expression whenever inputs change

Confirm your work

  1. Create a new Candidate Case and advance the Case to the Interviews Stage.
  2. Verify that an empty entry in the interviewer list exists.
  3. Add two interviewers to the list and click Submit.
  4. Verify that two Assignments are displayed.
  5. Complete the two Interview candidate Assignments.
  6. In the Assess Candidate approval Step, verify that the assessment rating is the average of the two interviewer ratings.
Tip:  You can also check the assessment rating using the Clipboard viewer to see the value of pyWorkPage.AssessmentRating.

This Challenge is to practice what you learned in the following Module:

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?

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