cancel
Showing results for 
Search instead for 
Did you mean: 

Work flow dynamic assignment

linton
Champ in-the-making
Champ in-the-making
Hi All,
         I have a workflow, how can i assign the work flow to different user(not based on groups).

And there is no document in the repository.  Let me write my scenario so you can understand better.

MY work-flow is for sign-up process. So there not going to be any document before this process.

(This sign up process is applied for only registered members to join a particular group. so they do have username  , password)

Only after they finish the first task i would create document.

In the above scenario how can assign this sign-up workflow to all the registered users.

Can anyone help me with some ideas….

Thank you
3 REPLIES 3

zaizi
Champ in-the-making
Champ in-the-making
When you invite users to a site in Alfresco Share it sets up an invite workflow which they complete when they accept the invitation. I would take a look at that for your requirement.

adnangul
Champ in-the-making
Champ in-the-making
This is simple,

This is how you create swim-lanes
<swimlane name="users">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{people.getPerson('user name')}</actor>
      </assignment>
</swimlane>

The above swim-lane assingn workflow to single user, if you wanted to you can do many user by comma separated, or do it via api as below

workflowInst.parameters["bpm:assignees"] =  persons ;  // person array containing object like people.getPerson("user name");

linton
Champ in-the-making
Champ in-the-making
Thank you very much  for  the reply..