Question
WfTally - adding a third event
Hello All,
I need to add a third routing event "Reject" to the code below in my change Notice workflow for a "Vote" activity. How do I add this? I want to Approve if all approve and Reject or Amend if any 1 person Rejects or Amends.
The code I am using:
WfAssignedActivity mySelf = ((WfAssignedActivity)self.getObject());
if (result !="Approve") {
//Set result to "Approve" if it has been chosen by all of the required users. In all other cases, set to Amend.
result = WfTally.all(self, "Approve", "Amend"); }
I have tried just adding the event after "Amend" and have tried changing WfTally.all to .any
Thanks in advance,
Russ Jacobsen
Director, Sustaining & Implementation
YAKIMA Products Inc.
I need to add a third routing event "Reject" to the code below in my change Notice workflow for a "Vote" activity. How do I add this? I want to Approve if all approve and Reject or Amend if any 1 person Rejects or Amends.
The code I am using:
WfAssignedActivity mySelf = ((WfAssignedActivity)self.getObject());
if (result !="Approve") {
//Set result to "Approve" if it has been chosen by all of the required users. In all other cases, set to Amend.
result = WfTally.all(self, "Approve", "Amend"); }
I have tried just adding the event after "Amend" and have tried changing WfTally.all to .any
Thanks in advance,
Russ Jacobsen
Director, Sustaining & Implementation
YAKIMA Products Inc.

