forked from optimajet/WorkflowEngine.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDesignerConstants.js
More file actions
285 lines (272 loc) · 9.58 KB
/
DesignerConstants.js
File metadata and controls
285 lines (272 loc) · 9.58 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
var WorkflowDesignerConstants = {
ActivityColor: '#ECF0F1',
ActivityTextColor: '#2D3436',
ActivityInitialColor: '#27AE60',
ActivityInitialTextColor: '#FFFFFF',
ActivityFinalColor: '#2980B9',
ActivityFinalTextColor: '#FFFFFF',
ActivityShape: '#CECECE',
SelectColor: '#F39C12',
SelectTextColor: '#FFFFFF',
SelectSubProcessColor: '#e3b015',
SelectSubProcessTextColor: '#FFFFFF',
ButtonActive: "#D4D8D9",
BarColor: "#EDF1F2",
BarSeparatorColor: "#D9DEE0",
DeleteConfirm: 'Are you sure you want to delete selected item(s)?',
DeleteConfirmCurrent: 'Are you sure you want to delete this item?',
FieldIsRequired: 'Field is required!',
FieldMustBeUnique: 'Field must be unique!',
ButtonTextDelete: 'Delete',
ButtonTextCreate: 'Create',
ButtonTextSave: 'Save',
ButtonTextYes: 'Yes',
ButtonTextNo: 'No',
ButtonTextCancel: 'Cancel',
ButtonTextClose: 'Close',
ButtonTextUndo: 'Undo',
ButtonTextRedo: 'Redo',
SaveConfirm: 'Save changes?',
CloseWithoutSaving: 'Close without saving?',
TransitionAuto: 'Auto',
DialogConfirmText: "Question",
None: "None",
Warning: "Warning",
InfoBlockLabel:{
Activity: 'Activities: ',
Transition: 'Transitions: ',
Command: 'Commands: ',
},
ActivityNamePrefix: 'Activity_',
ActivityFormLabel: {
Title: 'Activity',
TitleForInline: 'Activity Inline',
Name: 'Name',
State: 'State',
IsInitial: 'Initial',
IsFinal: 'Final',
IsForSetState: 'For set state',
IsAutoSchemeUpdate: 'Auto scheme update',
Implementation: 'Implementation',
PreExecutionImplementation: 'PreExecution Implementation',
ImpOrder: 'Order',
ImpAction: 'Action',
ImpActionParameter: 'Action parameter',
AlwaysConditionShouldBeSingle: 'Always condition should be single',
OtherwiseConditionShouldBeSingle: 'Otherwise condition should be single',
Annotations: 'Annotations',
AnnotationName: 'Name',
AnnotationValue: 'Value',
Scheme: "Inline scheme"
},
TransitionFormLabel: {
Title: 'Transition',
Name: 'Name',
From: 'From activity',
To: 'To activity',
Classifier: 'Classifier',
Restrictions: 'Restrictions',
RestrictionsType: 'Type',
RestrictionsActor: 'Actor',
Condition: 'Condition',
ConditionType: 'Type',
ConditionAction: 'Action',
ResultOnPreExecution: 'Result on PreExecution',
Trigger: 'Trigger',
TriggerType: 'Type',
TriggerCommand: 'Command',
TriggerTimer: 'Timer',
ConditionActionParameter: 'Action parameter',
ConditionInversion: 'Invert action result',
ConditionsConcatenationType: 'Conditions concatenation type',
AllowConcatenationType: 'Concat allow as',
RestrictConcatenationType: 'Concat restrict as',
ConditionsListShouldNotBeEmpty: 'Conditions list should not be empty',
IsFork: 'Is fork',
MergeViaSetState: 'Merge subprocess via set state',
DisableParentStateControl: 'Disable parent process control',
ShowConcatParameters : "Show concatenation",
HideConcatParameters : "Hide concatenation",
Annotations: 'Annotations',
AnnotationName: 'Name',
AnnotationValue: 'Value',
InlinedFinalActivityName: "Inlined Final Activity Name"
},
LocalizationFormLabel: {
Title: 'Localization',
ObjectName: 'ObjectName',
Type: 'Type',
IsDefault: 'IsDefault',
Culture: 'Culture',
Value: 'Value',
Types: ['Command', 'State', 'Parameter'],
},
TimerFormLabel: {
Title: 'Timers',
Name: 'Name',
Type: 'Type',
Value: 'Value',
Types: ['Command', 'State', 'Parameter'],
NotOverrideIfExists : "Do not override timer if exists"
},
ParameterFormLabel: {
Title: 'Parameters',
Name: 'Name',
Type: 'Type',
Purpose: 'Purpose',
Value: 'Value',
InitialValue: 'InitialValue',
ShowSystemParameters : 'Show system parameters'
},
ActorFormLabel: {
Title: 'Actors',
Name: 'Name',
Rule: 'Rule',
Value: 'Value'
},
CommandFormLabel: {
Title: 'Command',
Name: "Name",
InputParameters: "Input Parameters",
InputParametersName: 'Name',
InputParametersIsRequired: 'Required',
InputParametersParameter: 'Parameter',
InputParametersDefaultValue: 'Default'
},
ProcessInfoFormLabel: {
Title: 'Additional Parameters',
IsObsolete: "IsObsolete",
DefiningParameters: 'Defining parameters',
ProcessParameters: 'Process parameters',
SystemParametersTabName: 'System Parameters',
ProcessParametersTabName: 'Process Parameters',
HistoryTabName: 'History',
TimersTabName: 'Timers',
TagsTabName: "Tags",
HistoryTabFromLabel: 'From',
HistoryTabFromStateLabel: 'From State',
HistoryTabToLabel: 'To',
HistoryTabToStateLabel: 'To State',
HistoryTabExecutorIdLabel: 'Executor Id',
HistoryTabActorIdLabel: 'Actor Id',
HistoryTabTimeLabel: 'Time',
HistoryTabTriggerNameLabel: 'Trigger Name',
HistoryTabTransitionClassifierNameLabel: '',
ParametersNameLabel: 'Name',
ParametersValueLabel: 'Value',
TimersTabNameLabel: 'Name',
TimersTabValueLabel: 'Value',
RootProcess: "Root Process",
TagsLabel:'Tags (separated by commas)',
},
CodeActionsFormLabel: {
Title: 'Code actions',
Name: 'Name',
ActionCode: 'Action code',
IsGlobal: 'Is global',
IsAsync: 'Async',
Type: 'Type',
GlobalDeleteMessage: "You've deleted the Global CodeAction.<br/><b>Other schemes won't be able to call this CodeAction!</b>",
UnGlobalMessage: "You've changed the state of the global flag.<br/>There will be created a Local CodeAction based on this Global CodeAction after saving this scheme.",
EditParameters: "Edit parameters",
Parameters: "Parameters" ,
Text: "Text",
TextArea: "TextArea",
Number: "Number",
Checkbox: "Checkbox",
Dropdown: "Dropdown",
DateTime: "Date/Time",
Values: 'Values',
DropdownName: 'Name',
DropdownValue: 'Value',
DropdownShouldContainValues: 'Dropdown should contain values',
IsRequired: 'Required',
DefaultValue: 'Default value',
Json: 'Json'
},
EditParametersFormlabel: {
Title: "Edit parameter values",
NumberRequired: "Should be a numeric value",
DateShouldBeInISOFormat: "Date/Time parameter should be in ISO8601 format",
SwitchToJson: "Switch to JSON editor",
SwitchToConstructor: "Switch to parameter values editor",
InvalidJson: "JSON object is invalid or does not match the model"
},
ToolbarLabel: {
CreateActivity: 'Create activity',
CreateInline: 'Create inline (template)',
CopySelected: 'Copy selected',
Undo: 'Undo',
Redo: 'Redo',
Move: 'Move',
ZoomIn: 'Zoom In',
ZoomOut: 'Zoom Out',
ZoomPositionDefault: 'Zoom default',
FullScreen: 'Full Screen',
Refresh: 'Refresh',
AutoArrangement: 'Auto arrangement',
Actors: 'Actors',
Commands: 'Commands',
Parameters: 'Parameters',
Localization: 'Localization',
Timers: 'Timers',
AdditionalParameters: 'Additional Parameters',
CodeActions: 'Code actions',
Info: "Extended info",
Delete: "Delete",
Clone: "Clone",
Settings: "Settings",
CreateTransition: "Create a transition",
CreateActivityTransition: "Create an activity and a transition",
Legend: "Legend",
ProcessInfo: "Process Info",
Inline: "The scheme can be inlined"
},
ErrorActivityIsInitialCountText: "One element must be marked flag Initial",
ErrorActivityIsFinalCountText: "This scheme is Inlined. One or more elements must be marked flag Final",
ErrorReadOnlySaveText: "The Designer in ReadOnly mode, you can't save it.",
ErrorInvalidObjectsSaveText: function(objects) {
return "Can't save the schema. Those objects are in invalid state: " + objects;
},
BrokenReferencesDialogText: "This schema contains references to Actions, Conditions or Rules that aren't defined by this schema or current action providers. Do you want to keep them?",
FormMaxHeight: 700,
EditCodeSettings: {
Height: 600,
Width: 1000,
CodeHeight: 390,
MessageBoxHeight: 400,
MessageBoxWidth: 600,
SuccessBoxHeight: 150,
SuccessBoxWidth: 300
},
EditCodeLabel: {
Title: "Edit code",
EditCodeButton: 'Edit code',
Usings: 'Usings',
Compile: "Compile",
CompileSucceeded: "Compilation succeeded.",
Success: "Success",
Error: "Error",
OK: "OK",
ShowUsings: "Show usings",
HideUsings: "Hide usings",
},
EditJSONSettings: {
Height: 600,
Width: 1000,
CodeHeight: 480
},
EditJSONLabel: {
Title: "Edit value in JSON",
CreateEmptyType: "Create",
Format: "Format"
},
OverviewMap: {
show: true,
width: 300,
height: 150
},
UndoDepth: 200,
DefaultCulture: 'en-US',
ErrorInBrowserConsole: "See more info in the browser console."
};