Hi All,
I have created a workflow(simple workflow which can Accept / Reject the content) which will get triggered when author can make any change in content fragment on page. Please provide help how to trigger the workflow.
Thanks in advance,
Regards,
Pavan
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @p1hampi,
In order to listen to change in data of content fragment such that page(in which fragment used is to be the payload) and hence to be activated, we need to listen to node modified event on the exact content fragment node(within jcr:content of page).
In addition to fragmentPath property, could see a property named "text" which gets updated on change of data in content fragment.
Given this, create a workflow launcher with following properties and specify your workflow model.
Hi @p1hampi,
If workflow needs to be triggered on change of a content fragment, it is straight forward to make use of Workflow Launcher where the payload will be the respective content fragment.
But per your below statement in the original post, if you are looking for page(where respective content fragment is located) to be the payload/part of workflow, then it might call for different approach (Page holds reference alone to content fragment via fragmentPath property of Content Fragment component)
"when author can make any change in content fragment on page."
Please elaborate on the complete expected behavior.
Hi @p1hampi,
In order to listen to change in data of content fragment such that page(in which fragment used is to be the payload) and hence to be activated, we need to listen to node modified event on the exact content fragment node(within jcr:content of page).
In addition to fragmentPath property, could see a property named "text" which gets updated on change of data in content fragment.
Given this, create a workflow launcher with following properties and specify your workflow model.
Hi @p1hampi,
If workflow needs to be triggered on change of a content fragment, it is straight forward to make use of Workflow Launcher where the payload will be the respective content fragment.
But per your below statement in the original post, if you are looking for page(where respective content fragment is located) to be the payload/part of workflow, then it might call for different approach (Page holds reference alone to content fragment via fragmentPath property of Content Fragment component)
"when author can make any change in content fragment on page."
Please elaborate on the complete expected behavior.
Hi @Vijayalakshmi_S,
Thanks for your quick response.
Let me explain scenario for which I am looking solution. I have one workflow to approve/ reject the content. I have referred this article https://www.aemtutorial.info/2018/09/content-approval-workflows-in-aem-64.html . For the process step (if content change accepted)what should mention ?
Consider one page (/content/demo/us/en/demopage) ,in that page there are 3 different content fragments, my requirement is whenever author can change the data of any content fragment ,then above workflow will get activated. Please suggest accordingly.
Thanks in advance.
Regards,
Pavan
Views
Replies
Total Likes
Hi @p1hampi,
In order to listen to change in data of content fragment such that page(in which fragment used is to be the payload) and hence to be activated, we need to listen to node modified event on the exact content fragment node(within jcr:content of page).
In addition to fragmentPath property, could see a property named "text" which gets updated on change of data in content fragment.
Given this, create a workflow launcher with following properties and specify your workflow model.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies