Workflow comment | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
May 29, 2018 10:08 AM UTC

Dear Sathya,

You can use WorkItem[1] and get property from metaDataMap.

[1] WorkItem ("The Adobe AEM Quickstart and Web Application.")

Regards,

Peter

4 replies

smacdonald2008
Level 10
May 29, 2018 2:11 PM UTC

Nice answer

Translate
Peter_Puzanovs
New Participant
May 29, 2018 12:23 PM UTC

Hi Sathya,

Please add null pointer checks, sometimes this API gives nulls...

Regards,

Peter

Translate
AEMLearner-1989
Level 4
May 29, 2018 12:19 PM UTC

Thanks peter... its working now

commentValue = (String) previous.getWorkItem().getMetaDataMap().get("comment");

Regards,

sathya

Translate
Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
May 29, 2018 10:08 AM UTC

Dear Sathya,

You can use WorkItem[1] and get property from metaDataMap.

[1] WorkItem ("The Adobe AEM Quickstart and Web Application.")

Regards,

Peter

Translate