This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Force a comment on workflow vote

DSMStefanRohde - Thursday, November 12, 2015 5:27 AM:

Hey,

is there any way to find out the comment that is inserted on workflow vote? Diddn't manage to find out anything. Any help is appreciated.

Regards



Eric Domke - Thursday, December 17, 2015 12:58 PM:

In the OnClose event of the Activity, you can search for the most recently closed assignment using a search such as the following where the activityId comes from the this/me context argument in the server event.

<Item type='Activity Assignment' action='get' select='comments,path,related_id(keyed_name),source_id' orderBy='closed_on DESC' maxRecords='1'>
    <source_id>@activityId</source_id>
</Item>

From there, you can validate if the comments is present and throw an error (perhaps depending on the value of the path property).