On submit, users who are to vote are entered in a field. On the form submit they are copied to another field for use in driving the process.
In the voting state there is a vote button only if you are on the "not yet voted" list, a user field containing those left to vote.
In the vote transition, some fields are hidden until a decision is made, yes, no, or other, and on form submit the user is subtracted from the "not yet voted" field so that they cannot vote again. The vote count is also increased by one or reduced by one (or left alone in the case of "other" to count the votes.
Once a user has voted they will not see the vote button. If everyone on the list has voted then the item will move on to the next state.
Another transition is present that skips the "Last Voter?" decision so that a delayed notification can be added to transition the item once the due date is hit. This allows for everyone to vote only if done so within a timeframe. This transition does not show on any form.
As the "voters" field is left intact with all the original users invited to vote, this field can be used to send notifications on results, and drive visibility of the item through secondary ownership as desired.
A decision then routes the item to a passed the vote or rejected state based on the yes or no vote winning out. A Vote Count of more than 0 indicates a yes vote.
Current counts are hidden as they may affect an individual's vote if shown. To show these simply change the hide fields to "make read only" and the show fields to "make not read only".
The outcome decision can be removed to simply view the item rather than branching based on the vote.
User role set to both voters fields as starting point.
Process app type: Design Example
Required SBM Version: Other
Suggested for you are based on app category, product compatibility, popularity, rating and newness. Some apps may not show based on entitlements. Learn more about entitlements.
Related content and resources
Please upgrade to one of the following broswers: Internet Explorer 11 (or greater) or the latest version of Chrome or Firefox