Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Advance to process step in AEM workflow from Servelt

Avatar

Level 3

I am currently working on workflow customization. I got stuck at one of the step where I need to call process step from servlet. 

Why I am trying to do this because on content page I have added a Iframe having 2 buttons (Accept and Reject) . On click it will call POST  servlet to pass this action value to count how many approvers has approved it and once if everyone will approve advance to next  process or participant step from the servlet.

2 Replies

Avatar

Level 9

Hi Peter,

      Explore the workflow api [0] & steps you need is [1].   In my personal opinion you are not in right track for not utilizing out of the box feature & trying an hack around by introducing another middle layer UI/Servlet. 

[0] 

https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/granite/workflow/package-summar...

[1]

  • Find the itemid of current step
  • Then get routes from WorkflowSession
  • Once you know the route update the metadata
  • Using WorkflowSession complete the item & pass the next route. 

 

Thanks,

Avatar

Administrator

Please have a look at this helps article :- https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-pass-data.html

// Passing Values between Adobe Experience Manager Workflow Steps

This will give you some idea about what MC stuff is referencing.

~kautuk



Kautuk Sahni