Delegate task assigned to user in aem inbox | Community
Skip to main content
manisha594391
Level 4
Jan 31, 2022 5:40 PM UTC
Solved

Delegate task assigned to user in aem inbox

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-participating.html?lang=en

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.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Daniel_Gordon
Daniel_GordonAccepted solution
Employee
Jan 31, 2022 6:54 PM UTC

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/WorkflowSession.html#updateWorkflowData-com.adobe.granite.workflow.exec.Workflow-com.adobe.granite.workflow.exec.WorkflowData-

 

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

4 replies

Daniel_Gordon
Employee
Jan 31, 2022 5:56 PM UTC

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-workflows/workflows-step-ref.html?lang=en#dynamic-participant-step

 

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/adobe/acs/samples/workflow/impl/SampleGraniteWorkflowProcess.java#L129

 

 

 

Translate
manisha594391
Level 4
Jan 31, 2022 6:10 PM UTC

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.

 

Translate
Daniel_Gordon
Daniel_GordonAccepted solution
Employee
Jan 31, 2022 6:54 PM UTC

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/WorkflowSession.html#updateWorkflowData-com.adobe.granite.workflow.exec.Workflow-com.adobe.granite.workflow.exec.WorkflowData-

 

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

Translate