Skip to main content

Designating a relevant record

Archived

6 Tasks

30 mins

Visible to: All users
Intermediate Pega Platform 8.6 Dev/Designer Studio English
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded. Click here to continue your progress in the latest version.

Scenario

The Human Resources (HR) department wants to allow HR business partners to update the start date for an employee while the onboarding case is open. If the start date changes, both the employee and the manager receive a confirmation email.

Create a process to allow an HR business partner to update the start date for an employee. Create the process in Dev Studio so that you have more control over which records are made available to developers in App Studio. Configure the process with:

  1. An assignment shape with the preconfigured flow action AdjustStartDate. The flow action references a preconfigured section that has a read-only field that displays the current start date and an editable field where the HR business partner can set a new start date.
  2. A step to send an email to the employee. Create an email correspondence that contains the following text:
    As discussed in our telephone conversation, your start date has changed from <<.Employee.StartDate>> to <<.NewStartDate>>.
  3. A data transform to set the value of the employee start date using the value of the new start date, then to delete the new start date from the clipboard.

Add the process to the Relevant Records list to make the process available in App Studio. In App Studio, add the process to the Equipment selection stage as an optional action for the Onboarding case type.

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

Role User name Password
Senior System Architect SSA@TGB rules
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.

Challenge Walkthrough

Detailed Tasks

1 Create a process flow

  1. In Dev Studio, click Create > Process > Flow.
  2. In the Create Flow window, in the Label field, enter Update Start Date.
  3. Set the context to the Onboarding case with the highest available ruleset.
  4. Click Create and open to create the Update Start Date process flow.

2 Configure an assignment shape to edit the start date

Note: The flow rule includes an assignment shape labeled Update Start Date by default.
  1. Right-click the connector between the assignment shape and the end shape.
  2. Click View Properties to open the connector properties.
  3. In the Connector section, in the Flow action field, enter or select AdjustStartDate.
    Connector properties
  4. Click Submit.

3 Configure a Send Email step to notify the employee of the start date change

  1. In the flow rule, click the plus then Automations > Send email to add a Send email shape.
  2. Double-click the shape to begin configuration.
  3. In the Automation details section, configure the shape to send the email to the .Employee.pyEmail1 field.
  4. Enter the email subject as Start date change confirmation.
  5. From the Message drop-down list, click Correspondence to compose an email correspondence.
  6. In the Correspondence template field, enter UpdateStartDate, then click the crosshairs icon to create a correspondence rule.
  7. On the Create Correspondence form, in the Correspondence Type field, enter or select Email, then click Create and open to create the rule.
  8. In the text field, enter the email body as specified in the Scenario section. Insert properties for the employee start date and new start date.
  9. Click Save to finish composing the email content.
  10. Return to the Update Start Date flow rule.
  11. Click Submit to complete the Send Email step configuration.
    Automation details
  12. Adjust the connectors so that the connector from Update Start Date leads to Send email.
  13. Add a connector from Send email shape to the end shape.
    Update start date process

4 Configure a data transform to set the new start date

  1. Click Create > Data Model > Data Transform to create a new data transform.
  2. In the Label field, enter the name of the data transform as Adjust Start Date to New Date.
  3. Set the context to the Onboarding case with the highest available ruleset.
  4. Click Create and open to create the data transform.
  5. In the Definition tab, in the first step of the data transform, set the .Employee.StartDate equal to .NewStartDate.
  6. Add a second step to the data transform to remove .NewStartDate from the clipboard.
    Data transform
  7. Click Save to save the data transform.
  8. Return to the Update Start Date flow rule.
  9. Double-click the connector between the Send email step and the end shape.
  10. In the Set properties section, select the Apply data transform radio button.
  11. Select the data transform AdjustStartDateToNewDate.
    Connector properties
  12. Click the Submit to complete the configuration on the connector.

5 Designate the process as a relevant record

  1. From the flow rule, click the Actions menu and select Mark as relevant record.
    Mark as relevant record
  2. Click Save to save the flow rule.

6 Add the process to the Onboarding case type

  1. Switch to App Studio.
  2. In the Onboarding case life cycle, click Optional actions.
  3. Below Equipment selection stage, click + Action > More > Processes to locate the Update Start Date process.
    Update start date optional process
  4. Click Update Start Date > Select.
  5. Click Save to finish adding the Update Start Date process to the Onboarding case type.
    Update start date process

Confirm your work

  1. In App Studio, create a new Onboarding case, making a note of the case ID.
  2. From the Collect Employee Info view, fill out the required fields, including Start date, and advance the case to Equipment selection stage.
  3. From the Actions menu, click Add Work > Update Start Date.
  4. From the Adjust Start Date view, specify a new date in the New start date field.
    Adjust start date screenshot
  5. Click Submit.
  6. In the Onboarding case, click Actions > Refresh.
  7. In the Onboarding case, open the Start date change confirmation email and verify that the EmployeeStartDate and NewStartDate properties are properly populated.
  8. From the bottom-right corner, click the Gear icon and open the Clipboard tool.
  9. In the Clipboard tool, ensure the Thread matches the Onboarding case ID.
  10. Navigate to User Pages > pyWorkPage (TGB-HRApps-Work-Onboarding).
  11. Verify that NewStartDate value is not present.
    Pega clipboard screenshot2
  12. Navigate to User Pages > pyWorkPage (TGB-HRApps-Work-Onboarding) > Employee (TGB-HRApps-Data-Employee).
  13. Verify that StartDate has the updated value.
    Pega clipboard screenshot


Available in the following mission:

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