介绍
当流程运行到并行网关
,会将流程分成多条分支,也能够把多条分支汇聚到一起
并行网关
根据流向支持两种情况:
-
分支: 从
并行网关
向后流出,为所有后继顺序流创建
分支 -
汇聚: 在此等待,直到所有
前继顺序流
分支都到达以后,流程才会通过该并行网关
演示
JSON规范
- 1{
- 2 nodes: [
- 3 {
- 4 id: 'startEvent_1',
- 5 name: 'Start',
- 6 type: 'startEventNone',
- 7 },
- 8 // 并行网关-分支
- 9 {
- 10 id: 'gateway_1',
- 11 name: 'Gateway Parallel(out)',
- 12 type: 'gatewayParallel',
- 13 },
- 14 {
- 15 id: 'activity_1',
- 16 name: 'ActivityNone',
- 17 type: 'activityNone',
- 18 },
- 19 {
- 20 id: 'activity_2',
- 21 name: 'ActivityNone',
- 22 type: 'activityNone',
- 23 },
- 24 // 并行网关-汇聚
- 25 {
- 26 id: 'gateway_2',
- 27 name: 'Gateway Parallel(in)',
- 28 type: 'gatewayParallel',
- 29 },
- 30 {
- 31 id: 'endEvent_1',
- 32 name: 'End',
- 33 type: 'endEventNone',
- 34 },
- 35 ],
- 36 edges: [
- 37 {
- 38 id: 'edge_1',
- 39 name: '',
- 40 source: 'startEvent_1',
- 41 target: 'gateway_1',
- 42 },
- 43 // 后继顺序流
- 44 {
- 45 id: 'edge_2',
- 46 name: '',
- 47 source: 'gateway_1',
- 48 target: 'activity_1',
- 49 },
- 50 // 后继顺序流
- 51 {
- 52 id: 'edge_3',
- 53 name: '',
- 54 source: 'gateway_1',
- 55 target: 'activity_2',
- 56 },
- 57 // 前继顺序流
- 58 {
- 59 id: 'edge_4',
- 60 name: '',
- 61 source: 'activity_1',
- 62 target: 'gateway_2',
- 63 },
- 64 // 前继顺序流
- 65 {
- 66 id: 'edge_5',
- 67 name: '',
- 68 source: 'activity_2',
- 69 target: 'gateway_2',
- 70 },
- 71 {
- 72 id: 'edge_6',
- 73 name: '',
- 74 source: 'gateway_2',
- 75 target: 'endEvent_1',
- 76 },
- 77 ],
- 78},
- node
名称 | 说明 |
---|---|
id | gateway_1,节点Id |
name | Gateway Parallel(out),节点名称 |
type | gatewayParallel,表示该节点类型为并行网关 |
-
edge
- 参见:转移线:顺序流
评论: