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.
Best answer by Peter_Puzanovs

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
New Participant
May 29, 2018

Nice answer

Peter_Puzanovs
New Participant
May 29, 2018

Hi Sathya,

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

Regards,

Peter

AEMLearner-1989
New Participant
May 29, 2018

Thanks peter... its working now

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

Regards,

sathya

Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
May 29, 2018

Dear Sathya,

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

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

Regards,

Peter