【问题标题】:jBPM 4.3 Task Notification tag being ignoredjBPM 4.3 任务通知标签被忽略
【发布时间】:2010-04-16 17:31:30
【问题描述】:

我有一个带有通知条目的任务,但没有生成电子邮件,日志中也没有条目。来自邮件节点的电子邮件工作正常。我究竟做错了什么?我是否必须对我的自定义 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>

谢谢

凯文

【问题讨论】:

    标签: bmp


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-30
      • 2022-01-14
      • 1970-01-01
      • 1970-01-01
      • 2013-07-28
      • 2013-01-16
      相关资源
      最近更新 更多