Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Handlebar Helpers

edited Sep 2, 2021 8:05AM in Process Automation 4 comments

Summary

Conditional Functions to customize Human Task Notification emails

Content

Hi,

I'm trying to customize the email notification for a human task. I customized the template based on this document

https://docs.oracle.com/en/cloud/paas/integration-cloud/user-processes/customize-notification-emails-human-tasks.html#GUID-6C7FDE60-C1B7-499F-AF88-F109D98DF5C5

My form payload is something like this

approvalForm-->response-->data-->approvalRequired ="Y"

approvalForm-->response-->data-->approvalRequired ="N"

I have to render the Approval Actions based on approvalRequired flag. Below is my customization

         {{#payload}} {{#approvalForm}} {{#response}} {{#data}} 
                  {{#neq approvalRequired "Y"}}
                  {{#actions}} Actions: {{{actions}}} {{/actions}} {{/neq}}
                  {{/data}}
                  {{/response}}
                  {{/approvalForm}}
                  {{/payload}}

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!