Expand my Community achievements bar.

SOLVED

How to get changed property name/value in workflow triggered by launcher

Avatar

Level 2

Hi All,

 

I have a requirement to send a page's changed property value (start and end dates only) to a third party.

I created a launcher to read any change in PageContent of that page and trigger a workflow. Of the many properties of the page, how do I get the property name/value which is changed in the workflow? 

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

With the JCR event listener you can check which property is changed.

https://github.com/arunpatidar02/aem63app-repo/blob/master/java/TitlePropertyListener.java



Arun Patidar

View solution in original post

4 Replies

Avatar

Level 3
You can't find which is changed, send all.

Avatar

Level 2
There are 50+ properties in the page. I need to send only 2 properties when changed. Is there any other better approach? Should I be use event Listener or Resource change Listener, which is the right one to use in this context?

Avatar

Correct answer by
Community Advisor

With the JCR event listener you can check which property is changed.

https://github.com/arunpatidar02/aem63app-repo/blob/master/java/TitlePropertyListener.java



Arun Patidar