AEM Workflow to return multiple groups and users in a Participant Step Chooser | Community
Skip to main content
October 4, 2024
Solved

AEM Workflow to return multiple groups and users in a Participant Step Chooser

  • October 4, 2024
  • 2 replies
  • 1361 views

Hi,

 

We need to initiate a custom workflow whenever a CF is created or edited. This workflow must undergo review by multiple teams (T1, T2, etc.) before proceeding to approval.

Team T2 has several subgroups (T21, T22, etc.), and when T1 starts the workflow, the T2 groups should be loaded, allowing the selection of either T21 or T22..

Once a subgroup is chosen, the users within that group should be displayed, enabling the initiator to select multiple users for the review process.

 

However, the documentation for ParticipantStepChooser suggests that only individual users or groups can be selected. We are using AEM 6.5.

 

Any help is greatly appreciated.

 

Thanks,

Divya

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by EstebanBustamante

You can't do that. The recommended approach in this situation is to combine multiple users or groups into a super group and then use that super group as a wrapper. This way you use the ootb workflow steps (dynamic step or participant step). 

2 replies

EstebanBustamante
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 4, 2024

Hi,

 

I recommend using a DialogStep[1] to dynamically present and select the approver-based on your groups. You could implement some JavaScript to load the dropdown dynamically[3]. After that, utilize a DynamicParticipantStep[2] to capture the group or user that the workflow initiator selects from the DialogStep.

 

Here are some resources to help you build this:

[1] https://jpsoares.medium.com/developing-a-custom-workflow-dialog-in-aem-f77219ac96e3

[2] https://medium.com/@toimrank/aem-dynamic-participant-step-1cd58e15f28

[3]. https://medium.com/@arunpatidar26/dynamic-dropdown-in-aem-touch-ui-cc502022da24 

https://medium.com/@toimrank/aem-workflow-2f238742ab4f 

 

Hope this helps

 



 

Esteban Bustamante
DivyaT3Author
October 7, 2024

Hi @estebanbustamante ,

 

I can load groups and users dynamically, but I need to allow multiple users to be selected for content review. Using either the Dynamic Participant step or the Participant step only lets us select one user at a time.

How can I send content review to multiple users?

 

Thanks,

Divya T

EstebanBustamante
Community Advisor and Adobe Champion
EstebanBustamanteCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
October 7, 2024

You can't do that. The recommended approach in this situation is to combine multiple users or groups into a super group and then use that super group as a wrapper. This way you use the ootb workflow steps (dynamic step or participant step). 

Esteban Bustamante
arunpatidar
Community Advisor
Community Advisor
October 4, 2024

Hi @divyat3 
You may need to use Dynamic Participant Step 

Arun Patidar