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

Peter_Puzanovs
Community Advisor
Peter_PuzanovsCommunity AdvisorAccepted solution
Community Advisor
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

AEMLearner-1989
Level 4
May 29, 2018

Thanks peter... its working now

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

Regards,

sathya

Peter_Puzanovs
Community Advisor
Community Advisor
May 29, 2018

Hi Sathya,

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

Regards,

Peter

smacdonald2008
Level 10
May 29, 2018

Nice answer