Using Process variables in DMN Output

We are using email task to send mail, we need dynamic email body. we have used Decision table to run rule based on scenario’s it will provide output variable${emailBodyOutput}.

we are using DMN Output variable in email task against body property.

DMN Output variable is having process variables, it is not getting replaced with original value. How to use html string in DMN output variable with process variables inside. ?

When we receive email, we should have corresponding process variable value instead of ${propertyName}

Sample DMN output variable -


Hello ${user},

Below Task has been assigned to you by ${requester}


Thanks

Example email msg -

Hello ${user},

Below Task has been assigned to you by ${requester}
Thanks

Hi,

I would advise doing this a bit different. I would use the decision table to create the required output data and use that data in a separate step after that.
For example a script or service task that uses some kind of lightweight template engine. For example Apache FreeMarker.
(side node; The commercial solution provides features that lets you do this in a low code way)

Regards,

Yvo Swillens

@yvo Thanks for your quick reply.