cancel
Showing results for 
Search instead for 
Did you mean: 

Filter user in Select (bpm:assignee) control

azivotic
Champ in-the-making
Champ in-the-making
Hi,

I have bpm:assignee control in my custom wokflow, and that's ok. But wright now user can pick up all alfresco users for bpm:assignee. I wan't to limit user so that when he goes to select control and enter some term for search in search result appear just user from specific group or just some users defined by some criteria (it means that user can not search over entire alfresco user database, just over specific set of users). Does anybody know how i can achieve this in my custom workflow?

Regards,
Aleksandar
5 REPLIES 5

mitpatoliya
Star Collaborator
Star Collaborator
For that you have to customize the component which you use to select the users.
It is genericpicket component. When you enter the character and click on search button it fires the query in the alfresco and return the list of users.
So, what you need to do is customize that picker so that it crate the query accordingly.

azivotic
Champ in-the-making
Champ in-the-making
First of all thanks on your help.

For now i'm just using bpm:assignee control in my workflow process and appropriate Select control is rendered itself (probably  is somewhere connected to bpm:assignee property). So from your post a am concluding that a have to make my custom control that is similar to the Select control and attached her to bpm:assignee property or some other custom property). Do you know where i can find definition of genericpick control and listener which is executed on fire search event (or if you know some tutorial for making similar custom controls) ?

Regards,
Aleksandar

mitpatoliya
Star Collaborator
Star Collaborator

azivotic
Champ in-the-making
Champ in-the-making
Hi, thanks on your help.

I have looked on generic picker control, but it wasn't very clear to me where i can connect her to my assignee property and also how to connect with Bean for search. Do you know any example of using this component?

I also get recommendation to use people-finder component, have any experience with that?

Do you know any tutorial where is described how to create custom workflow form control? I didn't find anything on this subject and that would help me in this situation.

Sorry for my dumb questions, i'm still struggling with alfresco. Smiley Happy

Regards,
Aleksandar

andreeagp
Champ in-the-making
Champ in-the-making
Hello,
I don't know if i am posting correctly, but i have sort of the same problem.
I would like to do the following:
After i start a workflow(with a document attached) i would like to be able to filter users in the select by the attached document's type. For example if the type of the document is A, only users from group A will be displayed..Or filter them by the site the document is in( if site ia A, slect only from users in group A)
I hope i described correctly.
I took a look in the pickerchildren.get,js, also in the pickeritems.post…but i don't know what files call these function, and i have no ideeas where to start to resolve this problem.