BpmData.js
1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/**
* 存储流程设计相关参数
*/
export default class BpmData {
constructor() {
this.controls = [] // 设计器控件
this.init()
}
init() {
this.controls = [
{
action: 'hand-tool',
title: '抓手'
},
{
action: 'lasso-tool',
title: '套索'
},
{
action: 'space-tool',
title: '空间'
},
{
action: 'global-connect-tool',
title: '全局连接'
},
{
action: 'create.start-event',
title: '开始'
},
// {
// action: 'create.intermediate-event',
// title: '中间'
// },
{
action: 'create.end-event',
title: '结束'
},
{
action: 'create.exclusive-gateway',
title: '条件网关'
},
{
action: 'create.parallel-gateway',
title: '同步网关'
},
{
action: 'create.inclusive-gateway',
title: '条件同步网关'
},
{
action: 'create.user-task',
title: '用户任务'
},
{
action: 'create.service-task',
title: '服务任务'
},
{
action: 'create.sign-task',
title: '会签并行'
},
{
action: 'create.sign-task-sequential',
title: '会签串行'
},
{
action: 'create.subprocess-expanded',
title: '内部子流程'
},
{
action: 'create.subprocess-collapsed',
title: '外部子流程'
},
// {
// action: 'create.data-object',
// title: '数据对象'
// },
// {
// action: 'create.data-store',
// title: '数据存储'
// },
{
action: 'create.participant-expanded',
title: '泳池泳道'
}
]
}
// 获取控件配置信息
getControl(action) {
const result = this.controls.filter(item => item.action === action)
return result[0] || {}
}
}