将Activiti移动到特定任务,例如在事件发生时进行运行时连接。

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

Activiti move to a particular task on event like runtime wiring

问题

我们希望建模这个过程,以便在发生任何外部事件时,我们希望该过程进入特定的步骤。
现在,该过程可以处于任何步骤,但一旦事件发生,它应该回到特定的任务。我们不能将事件监听器附加到任何特定的任务。

让我用一个示例业务流程来解释这个问题。

将Activiti移动到特定任务,例如在事件发生时进行运行时连接。

假设任务处于“批准任务”或“待处理”阶段。现在,如果发生重置事件,我想将流程移动到“审查任务”状态。
我只在示例中显示了3个步骤,但可能有更多的任务。我所寻求的是一种通过API监听外部事件并将其重置为“审查任务”的方法。
在Activiti中,我们如何实现这一点?

英文:

We want to model the process such that in case of any outside event, we want the process to go to a particular step.
Now the process can be at any step but as soon as the event occurs, it should be back to a particular task. We can not attach an event listener to any particular task.

Let me explain this with a sample business process.

将Activiti移动到特定任务,例如在事件发生时进行运行时连接。

Lets say the task is in Approve task or Pending stage. Now in case of reset event I want to move the process to Review Task state.
I have only shown 3 steps in the example but there could a lot more task. All I am looking for a way to listen to an external event ( via API) and reset it to be back at Review Task.
How can we achieve this in activiti ?

答案1

得分: 3

好的,根据您的描述,听起来您确实在寻找一个案件管理解决方案。根据事件,在指定的“案件事件”列表内触发微型流程。
虽然 Activiti 不包括案例功能(CMMN),但是将 Activiti 推向了一个新水平的“Flowable” 项目包括了 BPMN 和 CMMN 引擎,肯定能满足您的要求。请查看一下。

英文:

Ok, from your description it sounds like you are really looking for a case management solution. Given events trigger micro processes within a specified list of "Case events".
While Activiti does not include case features (CMMN) the "Flowable" project which has taken Activiti to the next level includes both a BPMN and CMMN engine and should certainly meet your requirements. Check it out.

huangapple
  • 本文由 发表于 2020年9月30日 19:25:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/64136611.html
匿名

发表评论

匿名网友

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

确定