cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Assignee From Specific Group

pettazz
Champ in-the-making
Champ in-the-making
My workflow is very similar to the review workflow, and I'm looking for a way to define the set of users that the Assignee can be from. This could potentially be a group, or even an explicit list specified in javascript. Basically, the form must be submitted to a manager for approval, however, I don't know how to limit the available Assignees to only managers. Thanks for any help.
12 REPLIES 12

pmonks
Star Contributor
Star Contributor
Pooled tasks (http://wiki.alfresco.com/wiki/WorkflowAdministration#Pooled_Tasks_.26_Groups) may be appropriate for this, although you may need to implement a custom workflow in order to leverage this.

Cheers,
Peter

pettazz
Champ in-the-making
Champ in-the-making
I am using a custom advanced workflow already, it just has a very similar functionality to the review/approve workflow, in that it is sending to a user for approval.

Thanks a lot for the idea. So, from this pooledactors deal, I can use
<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
  <pooledactors>Budgeted</pooledactors>
</assignment>
where Budgeted is the name of the group of people who are able to review/approve this request.

What I really want is that the user is ONLY allowed to select one of the people in this group. We don't want them asking their buddy over in marketing for approval just to game this automated system. Would pooledactors provide that?

pettazz
Champ in-the-making
Champ in-the-making
Or another solution would be, once the user selects a person, (similarly to the checking that is provided for a d:int automatically), via Javascript I check to see if the selected person is in the group I want or not. If not, go back to that form with an error message like "assignee must be in group X," or if it is the proper group, continue creating the workflow normally. Is there a way to do this?

janco
Champ in-the-making
Champ in-the-making
Hi pettazz,

did you find a solution for this? I am facing the same problem.

Thank you

jayjayecl
Confirmed Champ
Confirmed Champ
Hi Janco, could you describe your precise needs, I'll help you on that

janco
Champ in-the-making
Champ in-the-making
When youre creating/starting an advanced workflow you have a option to pick up an assignee; there I am trying to have listed just people in a specific group (group where is the current user logged in). Managed to do it in "Reassign" option but cant find the place where to change it.

I will apreciate your help.

jayjayecl
Confirmed Champ
Confirmed Champ
Hi,

My idea is that you will have to build a custom generator component.
In order to be precise when I'll help you, could you please provide us with your workflowModel.xlm and your workflowProcessDefinition.xml ?

Thank you

norgan
Champ in-the-making
Champ in-the-making
Any news on this component ? I would like to use it too Smiley Happy

jayjayecl
Confirmed Champ
Confirmed Champ
Well, I asked janco about his workflow files, but he didn't answer.
I can help you, if you tell me more about your needs.