How can I distinguish between Acknowledge and Approve Event?

ISignOffEventInfo gets triggered when User Approves or Acknowledge the workflow. but how can i distinguish between these two event ?

Add Comment
1 Answer(s)

The API guide shows that the event is triggered for only approve and reject. However, if you have tested that it is being also triggered for acknowledge then a following solutions comes to mind:

1) Get the signoff users by using the function getSignOffForGroups. This should return all the users/user groups that have signed off ideally. 
2) The ISignOffReviewer has a function getSignOffJobFunction. I have never used it but it returns a string so you can check that..maybe it returns something like ‘Approve’ or ‘Acknowledge’
3) If that doesnt work then get the workflow from the eventinfo object. Get the current status of the workflow. Get the approvers on that status and see whether the signoff user in step 1 is in that list. If not then it must be another action like acknowledge

Hope this helps

Regards,
Furqan

Agile User Answered on July 1, 2016.

Thanks @furqantariq . I think second solution will solve my problem…!!

on July 4, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.