How to assign group/user to the Work Item programatically | Community
Skip to main content
November 20, 2015
Solved

How to assign group/user to the Work Item programatically

  • November 20, 2015
  • 3 replies
  • 977 views

Hi,

    I have a use case which states author workflow need to be called automatically based on node modification.Within that workflow I have to call approver workflow,participants need to be created and assigned based on authors group. I created a new group with User Manager Interface. How to assign this created group to the Work Item in the approver workflow? Please guide me how to achieve this.

I tried this in author's workflow process step

Group newGroup = userManager.createGroup(approverGroup,approverGroup , null);

 

Thanks!

Kirithi

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

Hi, 

Use the dynamic participant workflow step in your workflow and have the logic of creating and assigning the user/group in that step. refer [1] and [2] for the same.

[1] http://adobeaemclub.com/workflow-dynamic-participant-step/

[2] https://helpx.adobe.com/experience-manager/using/dynamic-steps.html

3 replies

kautuk_sahni
Employee
November 23, 2015

Hi kirithikak97587242

As mentioned by Bsloki in his comments, Dynamic Participant workflow would help you with your problem:

Link:-- https://helpx.adobe.com/experience-manager/using/dynamic-steps.html

Another link for a reference :- https://helpx.adobe.com/experience-manager/using/invoking-experience-manager-workflows-using.html

I hope this would help you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
edubey
New Participant
November 20, 2015

Hi 

Take a look @ https://helpx.adobe.com/experience-manager/using/jackrabbit-users.html

Its uses Jackrabbit API to dynamically create user and assign to group.

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
New Participant
November 20, 2015

Hi, 

Use the dynamic participant workflow step in your workflow and have the logic of creating and assigning the user/group in that step. refer [1] and [2] for the same.

[1] http://adobeaemclub.com/workflow-dynamic-participant-step/

[2] https://helpx.adobe.com/experience-manager/using/dynamic-steps.html