workflow-editor 0.9.67-boe5 → 0.9.67-boe7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,18 @@
1
1
 
2
2
  import { getLanguageWithLocale } from 'imatrix-ui/src/utils/util'
3
+ import i18n from '../../../src/i18n/i18n'
4
+ import newAutoTask from './json-object-templates/auto-task'
5
+ import newCopyTask from './json-object-templates/copy-task'
6
+ import newDecision from './json-object-templates/decision'
7
+ import newEnd from './json-object-templates/end'
8
+ import newFork from './json-object-templates/fork'
9
+ import newHumanDecision from './json-object-templates/human-decision'
10
+ import newHumanTask from './json-object-templates/human-task'
11
+ import newJoin from './json-object-templates/join'
12
+ import newProcess from './json-object-templates/process'
13
+ import newStart from './json-object-templates/start'
14
+ import newSubprocess from './json-object-templates/subprocess'
15
+ import newTransition from './json-object-templates/transition'
3
16
  function getStore() {
4
17
  return window.$store
5
18
  }
@@ -92,6 +105,16 @@ export function getComponentList() {
92
105
  height: 40,
93
106
  color: '#0777D4'
94
107
  },
108
+ {
109
+ name: 'AutoTask',
110
+ label: getI18n().t('workflowEditor.task.autoTask'),
111
+ icon: 'human-task',
112
+ type: '',
113
+ round: false,
114
+ width: 80,
115
+ height: 40,
116
+ color: '#0777D4'
117
+ },
95
118
  {
96
119
  name: 'End',
97
120
  label: getI18n().t('workflowEditor.task.end'),
@@ -269,7 +292,7 @@ function clearAllSelectedComponents() {
269
292
  */
270
293
  function removeTextProperty(obj) {
271
294
  const keys = Object.getOwnPropertyNames(obj)
272
- keys.forEach(function(key) {
295
+ keys.forEach(function (key) {
273
296
  if (typeof obj[key] === 'object') {
274
297
  if (obj[key]._text !== undefined) {
275
298
  obj[key] = obj[key]._text
@@ -290,7 +313,7 @@ function removeTextProperty(obj) {
290
313
  })
291
314
  }
292
315
  function generateTaches(type, arr) {
293
- if (!arr)arr = []
316
+ if (!arr) arr = []
294
317
  if (!Array.isArray(arr)) {
295
318
  arr = [arr]
296
319
  }
@@ -312,7 +335,7 @@ function generateTaches(type, arr) {
312
335
  }
313
336
  }
314
337
  function generateTransitions(type, arr) {
315
- if (!arr)arr = []
338
+ if (!arr) arr = []
316
339
  if (!Array.isArray(arr)) {
317
340
  arr = [arr]
318
341
  }
@@ -361,6 +384,7 @@ function initializeProcessData(process) {
361
384
  generateTaches('Subprocess', process.subprocess)
362
385
  generateTaches('HumanDecision', process.humanDecision)
363
386
  generateTaches('CopyTask', process.copyTask)
387
+ generateTaches('AutoTask', process.autoTask)
364
388
  generateTaches('Start', process.start)
365
389
  generateTaches('End', process.end)
366
390
  generateTransitions('Transition', process.transition)
@@ -442,39 +466,9 @@ function watchShowName(vm, newVal) {
442
466
  return showName
443
467
  }
444
468
  export {
445
- getComponentInfo,
446
- getJoint,
447
- getMousePosition,
448
- getClientMousePosition,
449
- getMouseOffset,
450
- getVirtualRegion,
451
- getRealRegion,
452
- startDragTache,
453
- endDragTache,
454
- clearAllSelectedComponents,
455
- removeTextProperty,
456
- initializeProcessData,
457
- findOutgoingTransitionsByTacheId,
458
- findIncomingTransitionsByTacheId,
459
- findTacheById,
460
- deepCopy,
461
- updateTransitionsWhenTacheIdChanged,
462
- validateTacheCode,
463
- getI18n,
464
- watchShowName
469
+ clearAllSelectedComponents, deepCopy, endDragTache, findIncomingTransitionsByTacheId, findOutgoingTransitionsByTacheId, findTacheById, getClientMousePosition, getComponentInfo, getI18n, getJoint, getMouseOffset, getMousePosition, getRealRegion, getVirtualRegion, initializeProcessData, removeTextProperty, startDragTache, updateTransitionsWhenTacheIdChanged,
470
+ validateTacheCode, watchShowName
465
471
  }
466
- import newProcess from './json-object-templates/process'
467
- import newHumanTask from './json-object-templates/human-task'
468
- import newDecision from './json-object-templates/decision'
469
- import newStart from './json-object-templates/start'
470
- import newEnd from './json-object-templates/end'
471
- import newTransition from './json-object-templates/transition'
472
- import newSubprocess from './json-object-templates/subprocess'
473
- import newFork from './json-object-templates/fork'
474
- import newJoin from './json-object-templates/join'
475
- import newHumanDecision from './json-object-templates/human-decision'
476
- import i18n from '../../../src/i18n/i18n'
477
- import newCopyTask from './json-object-templates/copy-task'
478
472
 
479
473
  const processTemplate = {
480
474
  newProcess,
@@ -487,7 +481,9 @@ const processTemplate = {
487
481
  newFork,
488
482
  newJoin,
489
483
  newHumanDecision,
490
- newCopyTask
484
+ newCopyTask,
485
+ newAutoTask
491
486
  }
492
487
 
493
488
  export { processTemplate }
489
+
@@ -246,6 +246,7 @@ export default {
246
246
  subprocess: [],
247
247
  humanDecision: [],
248
248
  copyTask: [],
249
+ autoTask: [],
249
250
  end: []
250
251
  }
251
252
  process.attr = this.process.attr
@@ -30,7 +30,7 @@ const cn = {
30
30
  i18nEn: '英文',
31
31
  i18nKey: '国际化key',
32
32
  subprocessTitle: '子流程流转历史',
33
- custom:'自定义'
33
+ custom: '自定义'
34
34
  },
35
35
  workflowEditorMessage: {
36
36
  requiredAndMustBeADate: '必填且必须为日期',
@@ -139,9 +139,9 @@ const cn = {
139
139
  variableName: '变量名',
140
140
  variableValue: '变量值',
141
141
  selectField: '选择字段',
142
- taskNotice:'待办通知',
143
- reminderNotice:'催办通知',
144
- customMsg:'自定义消息内容'
142
+ taskNotice: '待办通知',
143
+ reminderNotice: '催办通知',
144
+ customMsg: '自定义消息内容'
145
145
  },
146
146
  // 流程属性
147
147
  process: {
@@ -426,7 +426,11 @@ const cn = {
426
426
  cCtask: '抄送任务',
427
427
  canItBeRejected: '是否可驳回',
428
428
  selectMailTemplate: '选择通知模板',
429
- selectTemplate: '选择模板'
429
+ selectTemplate: '选择模板',
430
+ autoTask: '自动任务',
431
+ newAutoTask: '新自动任务',
432
+ propertiesOfAutoTask: '自动任务的属性',
433
+ custombeanName: '自定义bean'
430
434
  },
431
435
  // 流向属性
432
436
  transition: {
@@ -426,7 +426,11 @@ const en = {
426
426
  cCtask: 'CC Task',
427
427
  canItBeRejected: 'Can It Be Rejected',
428
428
  selectMailTemplate: 'Select Notice Template',
429
- selectTemplate: 'Select Template'
429
+ selectTemplate: 'Select Template',
430
+ autoTask: 'Auto Task',
431
+ newAutoTask: 'New Auto Task',
432
+ propertiesOfAutoTask: 'Properties Of Auto Task',
433
+ custombeanName: 'Custom Bean Name'
430
434
  },
431
435
  // 流向属性
432
436
  transition: {