When using a custom post-generation workflow in AEM Guides Cloud, the UI notification becomes stuck on "In Progress - Generating <output>..." indefinitely. In my case, I was using a Native PDF output preset. Even though the success message "hangs," and the PDF is generated successfully, and the workflow completes without errors.
I'm using AEM Guides as part of the cloud service.
After investigation, I discovered that the output history node shows two different status properties:
Location of output history: /var/dxml/metadata/outputHistory/ <id> / <id>
With Custom Workflow:
cloudStatus: "Finished" outputStatus: "Post-Publishing" <-- Never updates to Finished
Without Custom Workflow (default behavior):
cloudStatus: "Finished" outputStatus: "Finished" <-- Updates to Finished
The Issue:
My logic is, the AEM Guides UI must poll the outputStatus property (not cloudStatus) to determine when to show the completion notification. When using a custom post-generation workflow, the FinalizePostPublish step sets cloudStatus but does NOT set outputStatus to "Finished", leaving it stuck at "Post-Publishing".
START → Custom Step → FinalizePostPublish → ENDNote: for both steps "Handle Advance" is checks
START → Custom Step(s) → FinalizePostPublish → Step to manually the Set Output Status to Finished → ENDUsing something like this, in another workflow step after the Finalize post gen workflow step: props.put("outputStatus", "Finished");
Views
Replies
Total Likes
Note: FinalizePostPublish (com.adobe.fmdita.publishworkflow.FinalizePostPublish) is the back-end name for the Finalize Post Generation step.
Views
Replies
Total Likes
@jacobdi3 : as I understand it seems the custom workflow step is somehow depending on property under output history nodes and the "Finished" status update of "FinalizePostPublish" is failing - could be due to a race condition.
For clarity, can you share what are the steps performed in custom post generation workflow step?
Views
Replies
Total Likes
Hi Divraj,
Thanks for looking into this.
My custom workflow step performs metadata copying from the source DITAMAP to the generated PDF output. Here's what it does:
Important: My workflow step does NOT read from or write to any output history nodes (/var/dxml/metadata/outputHistory/). It only interacts with the DAM assets themselves (source DITAMAP and generated PDF metadata nodes).
Complete workflow
START → CopyMetadataToPdf → FinalizePostPublish → SetOutputStatusFinished → END
The SetOutputStatusFinished step reads outputHistoryPath from the workflow metadata (which AEM Guides provides), then explicitly sets outputStatus = "Finished" on that node and commits. This triggers the UI completion notification.
Given that my metadata copy step doesn't touch the output history nodes at all, I don't believe this is a race condition with my custom step. The outputStatus property simply never gets set to "Finished" when any custom post-generation workflow is used - the issue is reproducible even with a minimal custom workflow.
Views
Replies
Total Likes
@jacobdi3 : just to confirm few more things - is it possible to:
1. Add a delay in the custom workflow steps (lets say sleep for 5 seconds) - so that it can call FinaliPostGeneration after that delay
2. Confirm if you have enabled microservices for publishing?
3. refresh the session object (before reading metadata and then before committing the changes to repo) in custom workflow step?
These are few things that will help us isolate the problem.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies