Community

Mail template for custom MailProducer

reply from Kevin Moodley in jBPM Development - View the full discussion

Hi,

 

Thanks for looking into this.

 

Will the field tag work inside a notification tag in a task?

 

    <task assignee="kmoodley" g="210,250,92,52" name="User Review">

       <notification class="com.kevinmoodley.bpm.mail.CustomMailProducer">
            <field name="templateName"> <string value="test-template"/></field>
       </notification>

       <transition g="-42,-18" name="CANCEL" to="end1"/>
        <transition g="-42,-18" name="RESTART" to="end2"/>
    </task>

 

I know that the xsd does not support it, but then again the class attribute in <notification> is not is the xsd either.

 

By the way, most user only create create a custom MailProducer to bypass the requirement of the default MailProducerImpl that mail recepients  need to exist in the Indentity tables.

 

~~~~~~

List<User> users = identitySession.findUsersById(userIds);

~~~~~

 

Don't quite understand that, especially if I want the workflow to trigger an email to an external customer.

 

Anyway, this is not a serious issue. Moving back to the User forum now.

Thanks

Reply to this message by going to Community

Start a new discussion in jBPM Development at Community