How can I model many parallel activities in BPMN 2.0?

拈花ヽ惹草 提交于 2019-12-13 17:28:24

问题


I have 40 activities that do not depend on each other. I want to model them in a such way, that execution engine processes them in multiple parallel flows in any order. Execution engine may optimize their execution order (for example take as first the activity, that took the most time at the previous run).

Is it possible with BPEL or BPMN 2.0? If yes - how?

With a Parallel Gateway I will have to draw 40 edges, as far as I understand. Is there any better way?

Thanks!


回答1:


Yes, both languages support parallel activities:

  • BPMN 2.0:

    1. The typical scenario is, like you said, to use a parallel gateway and connect all activities using sequence flows.
    2. What may work is to use an Adhoc Subprocess with no sequence flow and the ordering attribute set to parallel. The tricky part is probably to define a completionCondition. The spec is somewhat unclear about this scenario, since it is more meant to support unstructured workflows with human interactions.
  • BPEL:

    1. This is an easy task for BPEL. Use the <flow> construct without any <link> elements. All nested activities will be executed in parallel, no 'edges' are needed.


来源:https://stackoverflow.com/questions/9770299/how-can-i-model-many-parallel-activities-in-bpmn-2-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!