cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Setup Participants Required

vmcdaniel
12-Amethyst

Setup Participants Required

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 3

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

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;


Announcements


Top Tags