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 - Actions based on voting

Igurg - Wednesday, August 7, 2013 9:08 AM:

Hey,

I have a workflow for a document and at one of the activities, I would like to take some action after voting.  Basically, I need to see what they voted for. I think I can attach a server method to the "onvote" event, but I am not sure exactly when this triggers, or how to find our what the user voted.  Any help would be greatly appreciated!



jenC - Thursday, August 8, 2013 10:46 AM:

Yes, create a server method and attach it to the OnVote event.

You can see everything that is passed into the method by using:
CCO.Utilities.WriteDebug("OnVoteEvent", Me.dom.OuterXml) 'in VB

You can then look for an OnVoteEvent.log file in InnovatorServer emp to see the results

It will show you the Activity DOM of the Activity being voted on as well as a few other properties.  To get the name of the path they chose, simply use:
Dim path as String = Me.getProperty("path")


You can then act on it as desired.