Certified Pega Senior System Architect v8.0 (2019) — Question 5
A flow action calls a pre-processing data transform to initiate values. There are several flow actions available for the assignment. You want to make sure that the values are only initiated once for each flow action.
How do you implement a solution?
Answer options
- A. Do nothing. The pre-processing data transform is only called once for each assignment.
- B. Make sure that the flow action does not have the highest likelihood since it will always be invoked.
- C. Configure the data transform as post-processing instead of pre-processing.
- D. Add logic to the pre-processing data transform to test if values were already initiated.
Correct answer: D
Explanation
The correct answer is D because adding logic to the pre-processing data transform ensures that it can check if the values have already been initialized, preventing multiple initializations. Option A is incorrect since it assumes the pre-processing transform will not be called again, which could lead to issues if multiple invocations occur. Option B does not address the problem of value initialization, and Option C changes the timing of the data transform's execution, which does not solve the requirement.