[jboss-user] [jBPM] - task notification using custom mail producer

Martin Pradny do-not-reply at jboss.com
Tue Mar 23 03:42:34 EDT 2010


Martin Pradny [http://community.jboss.org/people/mpradny] created the discussion

"task notification using custom mail producer"

To view the discussion, visit: http://community.jboss.org/message/533404#533404

--------------------------------------------------------------
Hello,

 I need to add some info from an external system in new task notification. I think the right way to do this is using custom mail producer, but I couldn't find any info how to do this. Even when I checked the source code  :( . In jPDL parser there are some attemps to check for bindings, but class attribute in <notification> tag is not allowed in XSD.

JPDLParser contains:
public MailProducer parseMailProducer(Element element, Parse parse, String defaultTemplateName) {
    // check whether the element is a generic object descriptor
    if (ObjectBinding.isObjectDescriptor(element)) {
      // TODO test custom mail producer
      ObjectDescriptor objectDescriptor = parseObjectDescriptor(element, parse);
      return (MailProducer) WireContext.create(objectDescriptor);
    }

    // parse the default producer
    MailProducerImpl mailProducer = new MailProducerImpl();
    mailProducer.setTemplate(parseMailTemplate(element, parse, defaultTemplateName));
    return mailProducer;
  }

 Could anyone point me in right direction?

Thank you,

 Martin

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/533404#533404]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100323/b9b7e9bd/attachment.html 


More information about the jboss-user mailing list