How to customize Participant Step dialog with dynamic checkbox values from workflow metadata?
Hi all,
I'm working on an AEMaaCS workflow and would like to implement a custom Participant Step dialog with dynamic data coming from a previous Process Step.
Here is my use case:
-
An editor starts a workflow on a Content Fragment
-
Editor receives a notification and completes the first task
-
A custom Process Step collects all referenced nodes under the Content Fragment and stores them into workflow metadata like below:
item.getWorkflow().getWorkflowData().getMetaDataMap()
.put("discoveredNodePaths", collectedPaths.toArray(new String[0]));
-
In the next Participant Step:
- Editor opens the task from Inbox
- A dialog should display all discovered node paths as a checkbox group
- Editor selects some nodes and clicks "Ok"
- The selected nodes should be saved back into workflow metadata
-
Next Reviewer step:
- Reviewer opens task and sees selected nodes
- Can approve or reject
-
If approved, a Process Step publishes all selected nodes
My questions is about step4:
-
How can I customize the Participant Step dialog in AEMaaCS?
- Especially how to build a dynamic checkbox group based on workflow metadata?
-
How can I read workflow metadata inside the dialog (Granite UI / Coral UI)?
-
After user clicks "Ok", how can I persist selected values back into workflow metadata for next steps?
-
Is this achievable with standard Participant Step dialog configuration,
or do I need a completely custom Inbox action / UI extension?
Any guidance or example would be greatly appreciated. Thanks!