I have got a custom workflow to activate the page post approval. But it has issue where it only publishes page and not associated assets. I get to know about AssetReferenceSearch class to activate the assets. However, I am trying to fine tune it a bit to publish the assets only if they are not published or modified after last publish action. How do I achieve it programmatically . I am on AEM 6.3
Views
Replies
Total Likes
You can check the get the assets from payload page using java API and check the replication status and modified and last replicated date
e.g.
aem63app-repo/GetPageAsset.java at master · arunpatidar02/aem63app-repo · GitHub
Views
Replies
Total Likes
Thanks Arun. But what I was looking for was kind of API method which tell me that this asset needs re-publishing because it was modified after last publish. Doing manually was the last option.
Views
Replies
Total Likes
I am not sure if there is any API available.
Views
Replies
Total Likes