Skip to main content
1-Visitor
November 21, 2012
Question

Setup Participants Required

  • November 21, 2012
  • 3 replies
  • 1029 views
Hey Gurus,

For Promotion Request approval, we would like the approver to be able to Setup the Participant for a rework sequence. (It is not always the Owner). We have done this by using an Assignee role as the participant for the Rework activity and the Approver can add people to it at the Approval Activity. If they add no one to the Assignee role, the Ignore unresolved role option, assigns the Activity to the Owner, this is what we want.

The problem is if they do not add anyone to the Assignee role the email Notification does not get sent to the Owner.

Is it possible to require the Participant is added before a task is complete
OR
Is it possible to populate the Assignee with Owner
OR
Any other solution proposals

Thanks!
Vaughn

3 replies

1-Visitor
November 21, 2012
There is a previous post on this exact topic a while back and some WF code supporting a solution. It will force the task user to input at least a single person iirc.


Steve Vinyard
Application Engineer
vmcdaniel1-VisitorAuthor
1-Visitor
November 26, 2012
vmcdaniel1-VisitorAuthor
1-Visitor
November 26, 2012

My final code turned out a little different than the referenced post.


wt.workflow.engine.WfProcess wfprocess = (((wt.workflow.work.WfAssignedActivity)self.getObject()).getParentProcess());


while (roles.hasMoreElements())


wt.project.Role role = (wt.project.Role)roles.nextElement();


if (participants.hasMoreElements())


if (role.getDisplay().equalsIgnoreCase("Assignee")) provider=true;


}


{



throw exp;