We are analyzing the chance to create an Enterprise Data Flow (DF), that can be re-used across multiple applications, where at the end we trigger the creation of a top application case.
Based on the data processed we are able to infer the target application (and then the right AG to use), but we haven’t found a way to switch the requestor access group (the enterprise AG) of the Data Flow to the correct one (top application AG),
You can always set access group dynamically in an activity, you can define a page “RunOptions” of class Data-Decision-DDF-RunOptions and set the access group dynamically in that step. After that you can use DataFlow-Execute method to run the data flow rule providing necessary RunOptions page property.
And if you have an requirement to execute some action and then again change the access group and do some other action you can do so by using pxStopRun, pxStopRunById, pxRestartRun, pxRestartRunById.
Please go through the links below for your reference.
@Megha007 Thank you for your input. We have adopted a different approach by leveraging the a java function that calls the replaceAccessGroup java method. It is used from the ootb EstablishContext activity (System-Queue-ServiceLevel). It works for backgrouund contexts