Kevin Moodley [
http://community.jboss.org/people/kevinmoodley] replied to the discussion
"Mail template for custom MailProducer"
To view the discussion, visit:
http://community.jboss.org/message/538618#538618
--------------------------------------------------------------
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
[
http://community.jboss.org/message/538618#538618]
Start a new discussion in jBPM Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]