Skip to main content
Jul 2, 2024 7:21 AM UTC
Solved

Add new field in start workflow popup. is it feasible? if yes please share the steps.

There is a requirement to get input from author when he starts workflow similar to existing field "Enter title of workflow", lets say "Author comments" in the red highlighted area shown in below screenshot. 

 

 

When I debugged for existing field "Enter title of workflow", I see the field input is hardcoded in jsp file and no where I could see the data is stored in AEM after Start workflow button is clicked. 

 

 

My question: Is it possible to add new field by customizing the jsp and store to AEM. Later pass the new field data from AEM to backend logic to show it in a email sent to approver?

Also is this correct practice to override the out of the box jsp code? 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Jul 2, 2024 7:59 AM UTC

Hi @bhagiyabalajis7 
You can try to overlay this and add new text filed, like you showed in the above example.

Arun Patidar

3 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
Jul 2, 2024 7:59 AM UTC

Hi @bhagiyabalajis7 
You can try to overlay this and add new text filed, like you showed in the above example.

Translate
Arun Patidar
EstebanBustamante
Adobe Champion and Community Advisor
Adobe Champion and Community Advisor
Jul 2, 2024 1:30 PM UTC

Hi, 

 

Yes, using an overlay is typically the correct approach in these situations. However, for your specific scenario, please keep in mind that the issue isn't just about adding the new UI field. You also need to consider how to handle this new field. The servlet that currently receives data ("/var/workflow/instances") won't manage this additional information you're posting. Therefore, you should also post to a different custom servlet, which will then trigger your workflow with this additional metadata.

 

 

Hope this helps.

Translate
Esteban Bustamante
kautuk_sahni
Level 9
Jul 8, 2024 6:00 PM UTC

@bhagiyabalajis7 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you! 

 

Translate
Kautuk Sahni