Expand my Community achievements bar.

SOLVED

Delegate task assigned to user in aem inbox

Avatar

Level 4

Hi Team,

I have to use case to allow delegation for workitem assigned to a single user. Looking around any custom solutions. I tried updating the workitem in the same dynamic paticipant step, but the wokitem comes as volatile and hence can't be updated. Any pointers appreciated. 

 

This is how OOTB delegation of Dynamic participant step happens in aem-

https://experienceleague.adobe.com/docs/experience-manager-64/authoring/workflows/workflows-particip...

Delegating a Participant Step

If a step has been assigned to you, but for any reason you are unable to take action, you can delegate the step to another user or group.

The users who are available for delegation depend on who was assigned the work item:

  • If the work item was assigned to a group, the group members are available.
  • If the work item was assigned to a group and then delegated to a user, the group members and the group are available.
  • If the work item was assigned to a single user, the work item cannot be delegated.
1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

gotcha, Yeah, i'm not sure if you can ever update the workItem node directly.

 

The safest way to persist content to a running workflow to update the Workflow's Data using: https://www.adobe.io/experience-manager/reference-materials/6-5/javadoc/com/adobe/granite/workflow/W...

 

potentially you could have a custom process step that ^ persists some data to the workflow's data and then you could update the dynamic participant step logic to look for that property

View solution in original post

4 Replies

Avatar

Employee Advisor

I think the easiest way is to assign the workitem to a group.

 

Have you tried implementing your own Dynamic participant ParticipantStepChooser?

 

https://experienceleague.adobe.com/docs/experience-manager-64/developing/extending-aem/extending-wor...

 

Also if you need to persist data to the Workflow's metadata map (to be used and in later steps) checkout this sample: https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/core/src/main/java/com/adob...

 

 

 

Avatar

Level 4

Thanks !! its kind of a resubmission scenario, hence assigning to group does not work here.

Also, workitem is being assigned to user via dynamic participant custom implementation only. 

I have figured out that if by any means i can add a specific property to the workitem node in the dynamic participant step while assigning to the user, I can make it work. But as i said the workitem is volatile node, so cannot even update it.

 

Avatar

Correct answer by
Employee Advisor

gotcha, Yeah, i'm not sure if you can ever update the workItem node directly.

 

The safest way to persist content to a running workflow to update the Workflow's Data using: https://www.adobe.io/experience-manager/reference-materials/6-5/javadoc/com/adobe/granite/workflow/W...

 

potentially you could have a custom process step that ^ persists some data to the workflow's data and then you could update the dynamic participant step logic to look for that property

Avatar

Level 4

The thing is, its the workitem created for dynamicparticipant step, theat need to be uopdated with prop "ORIGINAL_PARTICIPANT", to be the value of group, it was assigned to initially. so that the dropdown for delegate is populated with group members