cancel
Showing results for 
Search instead for 
Did you mean: 

Iterating parameters in email

tobiasw_
Champ in-the-making
Champ in-the-making
Hi,

I am passing a hashmap through my process, which contains products.

E.g. it could be described similarly like this: paramsHashMap.productsArray = [{id:1, name:blub, qty: 15},{id:2 ,name:bla, qty:14}].

This hashmap is injected into an email task. How can I iterate an array within an html email body such as:

<html>
<body>
Hello ${customer},<br/>
<br/>
Your order contained ${listofproducts}<br/>.
</body>

Do I have to create a service task first and create a concatenated String and pass it on,
or can I do this somehow within the email itself?

Cheers,

Tobi
1 REPLY 1

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Or implement a custom mail service task that uses a more advanced templating mechanism like freemarker, velocity, jsf