jBPM 4.3忽略任务通知标记

时间:2010-04-16 17:31:30

标签: bmp

我有一个带有通知条目的任务,但没有生成电子邮件,日志中也没有条目。来自邮件节点的电子邮件工作正常。我究竟做错了什么?我是否必须对我的自定义AssignmentHandler impl做一些特殊的通知?

  <mail g="216,156,80,40" name="Send email">

        <to addresses="kevinmoodley@gmail.com" />

        <subject>Testing the mail activity</subject>

        <text>This message was sent by the jBPM mail activity tester</text>

        <transition g="-78,-18" to="User Review" />

  </mail>





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

        <description>User Review Task Description</description>

        <assignment-handler

              class="com.kevinmoodley.BPMTaskAssignmentHandler">

              <description>Review AI Process Failure Assignment Handler</description>

        </assignment-handler>

        <notification>

              <to addresses="kevinmoodley@gmail.com" />

              <subject>Testing from task</subject>

              <text>This message was sent by the jBPM User Review task</text>

        </notification>

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

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

  </task>

由于

凯文

1 个答案:

答案 0 :(得分:1)

没关系。我发现默认的MailProducer实现,称为MailProducerImpl,依赖于jBPM的内部标识表。它要求在这些表中创建用户,并且在发送通知电子邮件之前将任务分配给这些表上的用户或用户组。由于我使用的是现有的Active Directory,因此我不使用jBMP身份表,因此不会收到任何电子邮件。解决方案:编写我自己的MailProducer实现