How to get changed property name/value in workflow triggered by launcher | Community
Skip to main content
Level 2
May 19, 2021 2:05 PM UTC
Solved

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

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
May 21, 2021 6:44 AM UTC

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

4 replies

arunpatidar
arunpatidarAccepted solution
New Participant
May 21, 2021 6:44 AM UTC

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

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

Translate
Arun Patidar
Lalitha_jAuthor
Level 2
May 21, 2021 6:49 AM UTC
Thanks Arun. That worked!
Translate
Lalitha_jAuthor
Level 2
May 20, 2021 8:35 PM UTC
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?
Translate
btaymaz1
Level 2
May 20, 2021 7:13 PM UTC
You can't find which is changed, send all.
Translate