-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathmyflow.jpdl3.js
94 lines (92 loc) · 5.63 KB
/
myflow.jpdl3.js
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
(function($){
var myflow = $.myflow;
$.extend(true,myflow.config.props.props,{
name : {name:'name', label:'名称', value:'新建流程', editor:function(){return new myflow.editors.inputEditor();}},
key : {name:'key', label:'标识', value:'', editor:function(){return new myflow.editors.inputEditor();}},
desc : {name:'desc', label:'描述', value:'', editor:function(){return new myflow.editors.inputEditor();}}
});
$.extend(true,myflow.config.tools.states,{
start : {
type : 'start',
name : {text:'<<start>>'},
text : {text:'开始'},
img : {src : 'img/16/start_event_empty.png',width : 16, height:16},
props : {
text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'开始'},
temp1: {name:'temp1', label : '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'aaa',value:1},{name:'bbb',value:2}]);}}
}},
end : {type : 'end',
name : {text:'<<end>>'},
text : {text:'结束'},
img : {src : 'img/16/end_event_terminate.png',width : 16, height:16},
props : {
text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'结束'},
temp1: {name:'temp1', label : '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'aaa',value:1},{name:'bbb',value:2}]);}}
}},
'end-cancel' : {type : 'end-cancel',
name : {text:'<<end-cancel>>'},
text : {text:'取消'},
img : {src : 'img/16/end_event_cancel.png',width : 16, height:16},
props : {
text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'取消'},
temp1: {name:'temp1', label : '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'aaa',value:1},{name:'bbb',value:2}]);}}
}},
'end-error' : {type : 'end-error',
name : {text:'<<end-error>>'},
text : {text:'错误'},
img : {src : 'img/16/end_event_error.png',width : 16, height:16},
props : {
text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'错误'},
temp1: {name:'temp1', label : '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'aaa',value:1},{name:'bbb',value:2}]);}}
}},
state : {type : 'state',
name : {text:'<<state>>'},
text : {text:'状态'},
img : {src : 'img/16/task_empty.png',width : 16, height:16},
props : {
text: {name:'text',label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'状态'},
temp1: {name:'temp1', label : '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor([{name:'aaa',value:1},{name:'bbb',value:2}]);}}
}},
fork : {type : 'fork',
name : {text:'<<fork>>'},
text : {text:'分支'},
img : {src : 'img/16/gateway_parallel.png',width :16, height:16},
props : {
text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'分支'},
temp1: {name:'temp1', label: '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor('select.json');}}
}},
join : {type : 'join',
name : {text:'<<join>>'},
text : {text:'合并'},
img : {src : 'img/16/gateway_parallel.png',width :16, height:16},
props : {
text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'合并'},
temp1: {name:'temp1', label: '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor('select.json');}}
}},
task : {type : 'task',
name : {text:'<<task>>'},
text : {text:'任务'},
img : {src : 'img/16/task_empty.png',width :16, height:16},
props : {
text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'任务'},
temp1: {name:'temp1', label: '文本', value:'', editor: function(){return new myflow.editors.inputEditor();}},
temp2: {name:'temp2', label : '选择', value:'', editor: function(){return new myflow.editors.selectEditor('select.json');}}
}},
decision : {type : 'decision',
name : {text:'<<decision>>'},
text : {text:'决定'},
img : {src : 'img/16/gateway_parallel.png',width :16, height:16},
props : {
text: {name:'text', label: '显示', value:'', editor: function(){return new myflow.editors.textEditor();}, value:'决定'},
expr: {name:'expr', label : '表达式', value:'', editor: function(){return new myflow.editors.inputEditor();}},
desc: {name:'desc', label : '描述', value:'', editor: function(){return new myflow.editors.inputEditor();}}
}}
});
})(jQuery);