Activiti 6.x and Mail Task

Showing results for 
Search instead for 
Did you mean: 
Member II

Activiti 6.x and Mail Task



I have a simple BPMN diagram with just a Start --> Mail Task --> End

In the Mail Task I want set the "to", "from" and "Subject" using "expression"

my goal for example is to make the "to" (recipent of the mail), dynamic.. where the email address should be taken from the "application properties" and if missed as fixed

conceptually I want write similar to


{env.getProperty("mypropemailto") ? {env.getProperty("mypropemailto") : ""}

there is a way to implement it ?

env.getProperty is just an example.. the idea is to get value from the  and so if set.. use it or if missed used a fixed one..


Reason: I have QA and PROD env.. and if both are deploying the same BPMN (becasue QA is a backup of PROD), really I don't want sent mail to real recipient but to a "specific one"
I cannot use process/task variable too.

Can you suggest something ?