Get topics payload in postprocessing workflow during incremental publishing | Community
Skip to main content
ravir73578276
Level 3
November 27, 2023

Get topics payload in postprocessing workflow during incremental publishing

  • November 27, 2023
  • 2 replies
  • 1326 views

While doing incremental site publishing, a user can select topics which needs to be updated incrementally during AEM Site Generation. 

I have a custom post processing workflow which gets triggered once the execution of aem sites completes.

In the custom workflow I need the list of topics which user selected during incremental site generation. Currently I don't see that getting passed to the metadata of the post processing workflow.

Is there any way I can retrieve that topics information programmatically in post processing workflow.

@divrajsingh 

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

2 replies

DivrajSingh
Adobe Employee
Adobe Employee
November 30, 2023

@ravir73578276 : I assume you are aware of the post generation workflow (check this documentationwith which you can access the metadata of the publishing job in the java process you implement.

Within the java process you also get the handle to the workflow metadata node (check details in Installation & Configuration Guide), and with that you can then access the metadata property "payloadJson" (see [1]) which has the list of topics which were selected while publishing (using re-generate option). 

NOTE: payloadJson is only available when you use the partial(re-generate) publishing .

 

I hope this answers your query.

 

[1]: "payloadJson" metadata of workflow contains the list of topics publishing when using re-generate option

 

ravir73578276
Level 3
November 30, 2023

Hy @divrajsingh  ,

Thanks for the valuable inputs, but this payloadJson is available on the metadata property of publishDitamapWorkflow instance. In my custom post processing workflow I don't see this payloadJson coming. From my custom post processing workflow how can I identify the publishDitamap Workflow Instance ?

DivrajSingh
Adobe Employee
Adobe Employee
December 4, 2023

@ravir73578276 : in the post generation workflow I assume you are accessing the workflowData object of workItem available in post generation workflow. Please refer this post where an example code snippet is share for accessing workflowData object properties.

If above does not solve it, you may have to share your code snippet for clarity on why "payloadJson" is not accessible in your custom code.

kautuk_sahni
Community Manager
Community Manager
February 21, 2024

@ravir73578276 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
February 21, 2024

Hy @kautuk_sahni , This is still an open item.