Expand my Community achievements bar.

SOLVED

Workflow comment

Avatar

Level 5

Hi,

How to get a current comment from workflow which is entered by approver

Regards,

Sathya

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Dear Sathya,

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

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

Regards,

Peter

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Dear Sathya,

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

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

Regards,

Peter

Avatar

Level 5

Thanks peter... its working now

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

Regards,

sathya

Avatar

Community Advisor

Hi Sathya,

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

Regards,

Peter