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-
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:
Solved! Go to Solution.
Views
Replies
Total Likes
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
I think the easiest way is to assign the workitem to a group.
Have you tried implementing your own Dynamic participant ParticipantStepChooser?
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...
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.
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
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