In workflow participant step I wanted to show list of Approvers. The approver list will change based on the payload (page) belongs to which site(site based approvers).I am getting the approvers list form the custom AEM user Group through a data source populated as drop down.
When I am opening the payload and try to complete the workflow step, I am getting the current page path by using
But when I am trying to complete the workflow step directly from AEM Inbox, then I am not getting any information about the payload in the data source code because the page path as localhost:4502/aem/inbox.
You haven't mentioned touch or classic ui and other details...
If you want to perform any action or get something on click of dialog button, you would need to add listeners to the dialog. For page path, you could use $PATH or CQ.WCM.getPagePath() or some other way