Skip to main content
7-Bedrock
April 22, 2014
Solved

Assigning Users to Roles when the Workflow is Initiated

  • April 22, 2014
  • 4 replies
  • 2773 views

I have a manager that wants to assign the person for the engineer, checker, and industral engineer roles at the time the workflow is initiated. Can this be done with the 'Conditional' robot?

Best answer by jrussell

All we did was assign roles to activities in the workflow and then selected 'Set Up Participants' in the Manager activity. This allows the manager to assign users to the roles in the other workflow activities.

4 replies

22-Sapphire I
April 22, 2014

Two options:

- Pretty standard: Make the Manager's Task in the Workflow Template "Setup Participants" type. He then gets a UI (third tab on the Task) to assign users to Roles.

- Brute Force option: Give the Manager Modify permission to the Team object type (at Site, Policy Admin). He can then Edit the Members table of any object with a process. Downside - Manager won't know which to edit / when.

jrussell7-BedrockAuthor
7-Bedrock
April 22, 2014

I got it to work for choosing the next user for the next workflow process. I wasn't able to choose all users (project engineer, industrial engineering, production control) from the very begining of the workflow. If you have some advice on how to choose all users at the start of the workflow, please let me know.

Thanks,

James

1-Visitor
April 28, 2014

Why you don't like to do it with the expression robot? You need some strings of java code to do it.

Team team = TeamHelper.service.getTeam(self.getObject());

team.addPrincipal(Role, WTPrincipal);

jrussell7-BedrockAuthorAnswer
7-Bedrock
May 13, 2014

All we did was assign roles to activities in the workflow and then selected 'Set Up Participants' in the Manager activity. This allows the manager to assign users to the roles in the other workflow activities.