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?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @bhagiyabalajis7
You can try to overlay this and add new text filed, like you showed in the above example.
Hi @bhagiyabalajis7
You can try to overlay this and add new text filed, like you showed in the above example.
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.
@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!
Views
Replies
Total Likes
Views
Likes
Replies