Hi all,
On this thread, Madu explains how to setup user defaults in general: Doubt on User default
I'm having difficulties understanding the logic if there are multiple line items in a request for multiple systems with different user default sets. The reason I'm having those difficulties is that the return value of the user default BRF+ function is a single text value only rather than a table to could deliver multiple results for different line items (compare this to the initiator BRF+ rule, where it is possible to return different result values for different line items).
Can you explain the logic of User Defaults for multiple line items with different systems?
If I set up the User Defaults and I have a request with two line items:
001 Role X / System SYS1
002 Role Y / System SYS2
and I have a decision table looping over the line items like:
System User Default ID
SYS1 001
SYS2 002
the system will call the User Defaults BRF+ function. It will run through the loop for 2 iterations (as there are two line items). During the first iteration, it will set USER_DEFAULT_ID to 001. In the second iteration, it will overwrite USER_DEFAULT_ID from 001 to 002. Hence, the result from the first iteration will be lost.
The BRF+ function will report back to GRC only User Default ID = 002.
How do you deal with requests than contain multiple line items with different systems and make sure all the user defaults get assigned - rather than only one (the one valid for the last line item, incidentally)?
Thanks a lot and regards
Patrick