CPSA Data Validation and Transforms 2 — Questions and Answers
Question 1: Which Pega rule type is used to convert data from one format to another, such as mapping fields from a source clipboard page to a target clipboard page?
- Data Transform (Correct answer)
- Decision Table
- Validate rule
- Map Value rule
Correct answer: Data Transform
A Data Transform rule maps and converts data between source and target clipboard pages, enabling format conversion and field mapping.
Question 2: When a Validate rule returns a 'Fail' result for a specific property, where does Pega store the error message by default?
- pyWorkPage.pxErrors
- pyWorkPage.pyMessages
- The pxValidationMessages list on the work page (Correct answer)
- The pxError property on the failed property's page
Correct answer: The pxValidationMessages list on the work page
When validation fails, Pega stores error messages in the pxValidationMessages list on the work page by default.
Question 3: In a Data Transform, what does the 'Append and Map to' action do?
- Copies a page into an existing page list and maps values to it (Correct answer)
- Deletes all rows from a page list before adding a new one
- Creates a new top-level clipboard page
- Converts a page group into a page list
Correct answer: Copies a page into an existing page list and maps values to it
'Append and Map to' adds a new entry to a page list and maps source values into that new entry.
Question 4: Which property type should you use in an Edit Validate rule when you need to confirm that a user-entered date is not in the past?
- Text
- Date (Correct answer)
- DateTime
- Integer
Correct answer: Date
Edit Validate rules on Date-type properties allow comparison logic to verify the date is not before today.
Question 5: A developer wants a Data Transform to run automatically when a case is created. Which configuration achieves this?
- Reference the Data Transform in the case type's 'Create' stage pre-processing (Correct answer)
- Add the Data Transform to the Validate rules list in the flow
- Set the Data Transform as a 'before-save' activity
- Enable 'Auto-run on creation' in the Data Transform settings
Correct answer: Reference the Data Transform in the case type's 'Create' stage pre-processing
Data Transforms intended to run at case creation are configured in the case type's 'Create' stage pre-processing section.
Question 6: What is the purpose of the 'Set' action in a Data Transform rule?
- Assigns a value to a target property (Correct answer)
- Removes a property from the clipboard
- Copies an entire page to a target
- Appends a value to a page list
Correct answer: Assigns a value to a target property
The 'Set' action in a Data Transform assigns a specified value or expression result to a target property.
Question 7: When building a Validate rule, which keyword must be returned for the validation to pass without errors?
- Pass (Correct answer)
- Valid
- True
- OK
Correct answer: Pass
A Validate rule must return 'Pass' to indicate that all conditions were met and no validation errors occurred.
Which Pega rule type is used to convert data from one format to another, such as mapping fields from a source clipboard page to a target clipboard page?