Validating data against business logic
1 Task
10 mins
Beginner
Pega Platform '23
Data Integration
Constellation
English
Scenario
Customers with standard coverage use a credit card to pay for services performed by a service provider. To ensure that credit card transactions are processed correctly, stakeholders have identified that the expiration date must be in the future. Expired cards are rejected, and the process cannot continue until the user provides a valid expiration date.
Note: The framework of this challenge uses the Constellation architecture of Pega Platform™. To practice this challenge on the Traditional UI architecture, see the Validating data against business logic version 8.8 challenge.
The following table provides the credentials you need to complete the challenge.
Role | User name | Password |
---|---|---|
Application Developer | author@gogoroad | 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.
Challenge Walkthrough
Detailed Tasks
1 Configure a View to validate the expiration date is in the future
- In the Pega instance for the challenge, enter the following credentials:
- In the User name field, enter author@gogoroad.
- In the Password field, enter pega123!.
- In the navigation pane of App Studio, click Case Types > Assistance Request to open the Assistance Request Case Type.
- Click the Enter payment information Step.
- In the contextual properties pane on the right, click .
- In the Enter payment information View, click the Conditions tab to add a validation condition to the Step.
- In the Validate fields based on these conditions section, click to make the condition entry fields available.
- In the Message field, enter Expiration date is not valid as the message to display if the user enters an invalid expiration date.
- In the Select list, select Fields > Payment information > Expiration date.
- In the Comparator list, select is before.
- On the right, click the Select values dialog box to define additional options for the condition.
-
In the Select values dialog box, in the Type list, select Time period to match the fields as shown in the following image.
- In the Select values dialog box, click .
- In the View, click .
Confirm your work
- In the Assistance Request Case, click .
- Advance the Case to the Enter payment information Step.
- In the Expiration date field, enter a date in the past.
- On the Enter payment information form, click to attempt to advance the Case.
- Verify that the application prevents the Case Type from advancing and displays the Expiration date is not valid error.
Note: The error message ID may be displayed instead of the error message.
-
In the Expiration date field, enter a date in the future.
- Click and confirm that the Case advances to the next Stage.
This Challenge is to practice what you learned in the following Module:
Available in the following missions:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?