Switch of Acces Group from a Service Package rule used by multiple applications in a cluster environment
We have our Pega V722 implementation running in a cluster environment and we have 2 separate applications running from the same cluster. Both apps have controlled by separate access groups. For now, we have DocuSign integration implemented in one application and would like to extend the same to other application by using the reusability of code. As a part of this process, we got stuck in the Service Package given by Pega and is used to listen the DocuSign service events based on the work object handle to process the logic in the sys. Now the problem is we want to switch the access grp and use it dynamically to call the right application specific rules from the REST service activity accordingly. I checked the PDN and I did find few articles but they are not very clear on how to switch the AG on fly. Here is one good article with the java code but no luck from my side.
You can do that in the Authentication Service used by the Service Package. The Authentication Service creates the requestor based on the operator passed and you can control which Access Group is used for that operator.
All you have to do is specialise if not already the authentication activity used like you'd do in a SSO implementation.
The Service Package defines the authentication used for the end point service. There you define the Access Group used and the Authentication Service.
You can create a new authentication service that based on the request selects the Access Group to be used. You need:
- Access Group A with one application and a ruleset with the Authentication Service and activity to perform the switch based on the parameter. You can check the existing authentication activities for your reference.
- Your existing Access Group B and Access Group C.
Hope this helps, but let me know if you need further details.