Greetings,
I have a custom workflow that I would like to execute against DAM assets. The workflow includes a Dynamic Participant Step with a dialog. If I test the workflow against a Page, I'm able to see the dialog appear and interact with it as expected.
However, when I execute against DAM assets, I see no dialog.
Steps:
Is there a mechanism by which I can make a dialog appear in this context?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @johnagordon83
I have tried using on OOTB workflow and below is my finding - Can you try it refreshing page? I can see dialog after
refreshing page -> ClickAdvance -> Dialog is visible.
Considering your custom workflow if it still have same issue, you might have to look for script which is responsible to show pop up and have to override it accordingly.
Hope that helps!
Regards,
Santosh
Hi @johnagordon83
I have tried using on OOTB workflow and below is my finding - Can you try it refreshing page? I can see dialog after
refreshing page -> ClickAdvance -> Dialog is visible.
Considering your custom workflow if it still have same issue, you might have to look for script which is responsible to show pop up and have to override it accordingly.
Hope that helps!
Regards,
Santosh
I can see the same thing as you after refreshing. The problem is, the dialog shown here doesn't appear to be the custom dialog I configured because it doesn't include a checkbox labeled 'Report Only'. I feel reasonably confident I configured the dialog properly because it works when I run this workflow against a page. I'm running this as an admin user. I'm not seeing any errors in server logs or console. I tried to swap out Dynamic Participant Step for Dialog Participant Step, but still I did not see the 'Report Only' checkbox. I'm starting to believe AEM does not use the custom dialog in this context, but rather some default one.
Custom Dialog Markup
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="nt:unstructured" jcr:title="Remove Unused Assets Chooser" sling:resourceType="cq/gui/components/authoring/dialog"> <content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" margin="{Boolean}false"/> <items jcr:primaryType="nt:unstructured"> <columns jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <items jcr:primaryType="nt:unstructured"> <report-only jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/checkbox" checked="{Boolean}true" name="reportOnly" text="Report Only (Do not update/replace)" uncheckedValue="{Boolean}false" value="{Boolean}true"/> </items> </columns> </items> </content> </jcr:root>
Workflow Transitions
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:isCheckedOut="{Boolean}false" jcr:primaryType="cq:WorkflowModel" jcr:uuid="dfcfad9f-da90-4f03-94b2-7aba5be5eece" sling:resourceType="cq/workflow/components/model" description="Removes image media assets that are not referenced by any pages" title="TNC Remove Unused Assets Workflow"> <metaData cq:generatingPage="/conf/global/settings/workflow/models/admin/tnc-remove-unused-assets-workflow/jcr:content" cq:lastModified="{Long}1654100337568" cq:lastModifiedBy="admin" jcr:primaryType="nt:unstructured"/> <nodes jcr:primaryType="nt:unstructured"> <node0 jcr:primaryType="cq:WorkflowNode" title="Start" type="START"> <metaData jcr:primaryType="nt:unstructured"/> </node0> <node1 jcr:primaryType="cq:WorkflowNode" title="Dynamic Participant" type="DYNAMIC_PARTICIPANT"> <metaData jcr:primaryType="nt:unstructured" DIALOG_PATH="/conf/global/settings/workflow/dialogs/remove-unused-assets-chooser/cq:dialog" DYNAMIC_PARTICIPANT="/libs/workflow/scripts/initiator-participant-chooser.ecma"/> </node1> <node2 jcr:primaryType="cq:WorkflowNode" description="Removes image media assets that are not referenced by any pages" title="Remove Unused Assets Process" type="PROCESS"> <metaData jcr:primaryType="nt:unstructured" PROCESS="com.tnc.aem.workflows.RemoveUnusedAssetsWorkflowStep" PROCESS_AUTO_ADVANCE="true"/> </node2> <node3 jcr:primaryType="cq:WorkflowNode" title="End" type="END"> <metaData jcr:primaryType="nt:unstructured"/> </node3> </nodes> <transitions jcr:primaryType="nt:unstructured"> <node0_x0023_node1 jcr:primaryType="cq:WorkflowTransition" from="node0" rule="" to="node1"> <metaData jcr:primaryType="nt:unstructured"/> </node0_x0023_node1> <node1_x0023_node2 jcr:primaryType="cq:WorkflowTransition" from="node1" rule="" to="node2"> <metaData jcr:primaryType="nt:unstructured"/> </node1_x0023_node2> <node2_x0023_node3 jcr:primaryType="cq:WorkflowTransition" from="node2" to="node3"> <metaData jcr:primaryType="nt:unstructured"/> </node2_x0023_node3> </transitions> </jcr:root>
A couple of questions:
Check the error.log or console error to find any issues.
Thanks,
Kiran Vedantam.