如何在事件网关上创建邮件提醒?

huangapple go评论61阅读模式
英文:

How can I create a Mail-Reminder on an Event-Based Gateway?

问题

我想在等待消息以继续工作流程时向用户发送电子邮件提醒。此部分目前建模如下:

如何在事件网关上创建邮件提醒?

如您所见,我使用了一个“基于事件的网关”来在两个消息之间做出决策。此外,我使用了一个“定时器中间捕获事件”,类型为循环,以触发,例如每10分钟一次。
任务“Approval Person erinnern”是一个处理邮件传递的外部任务。

我遇到的问题是,在等待外部任务工作者完成“Approval Person erinnern”任务时,我必须离开“基于事件的网关”。在等待的过程中,我无法收到我正在等待的消息。在我的用例中,发送提醒邮件和接收定义的消息之一可能会并行发生。

有没有想法如何更改我的模型图以实现我的目标?

我正在使用Camunda Platform 7.19。

我尝试使用异步继续功能,但没有成功。

英文:

I want to send E-Mail reminder to a user while I am waiting for a Message to continue the Workflow. This Part is currently modelled like this:

如何在事件网关上创建邮件提醒?

As you can see, I am using an "Event-Based Gateway" to decide between two Messages. In addition, I use a "Timer Intermediate Catch Event" with the type cycle to fire, e.g. every 10 Minutes.
The Task "Approval Person erinnern" is an external Task which handles mail delivery.

The Problem I am having is that I have to leave the "Event-Based Gateway" to send a reminder Mail. While I am waiting for my External Task Worker to finish the "Approval Person erinnern" task, I can't receive the messages I am waiting for. In my Use case, sending a reminder Mail and received one of the defined messages could happen parallel.

Any idea how I could change my model Diagram to achieve my Goal?

I am using Camunda Platform 7.19

I tried to use the Asynchronous continuations feature but did not have any luck with it.

答案1

得分: 0

这应该可以工作。嵌入子流程中的主要流程保持活动状态,直到收到“genehmigt”或“abgelehnt”消息,通过您触发的非中断中间计时器来触发电子邮件提醒。

英文:

This should work. The main flow in the embedded sub-process stays active until either "genehmigt" or "abgelehnt" message arrives, via the non-interrupting intermediate timer you trigger the email reminder.

如何在事件网关上创建邮件提醒?

huangapple
  • 本文由 发表于 2023年8月10日 16:36:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/76873973.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定