diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js b/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js index c1f40c1b..788e4d16 100644 --- a/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js +++ b/src/components/bpmnProcessDesigner/package/designer/plugins/palette/CustomPalette.js @@ -165,6 +165,12 @@ F.prototype.getPaletteEntries = function () { 'bpmn-icon-user-task', translate('Create User Task') ), + 'create.call-activity': createAction( + 'bpmn:CallActivity', + 'activity', + 'bpmn-icon-call-activity', + translate('Create Call Activity') + ), 'create.service-task': createAction( 'bpmn:ServiceTask', 'activity', diff --git a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js b/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js index 7e5aa8c6..cb920413 100644 --- a/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js +++ b/src/components/bpmnProcessDesigner/package/designer/plugins/translate/zh.js @@ -56,6 +56,7 @@ export default { 'Create EndEvent': '创建结束事件', 'Create Task': '创建任务', 'Create User Task': '创建用户任务', + 'Create Call Activity': '创建调用活动', 'Create Service Task': '创建服务任务', 'Create Gateway': '创建网关', 'Create DataObjectReference': '创建数据对象', diff --git a/src/components/bpmnProcessDesigner/package/penal/task/data.ts b/src/components/bpmnProcessDesigner/package/penal/task/data.ts index eda7684f..805c9ac5 100644 --- a/src/components/bpmnProcessDesigner/package/penal/task/data.ts +++ b/src/components/bpmnProcessDesigner/package/penal/task/data.ts @@ -2,6 +2,7 @@ import UserTask from './task-components/UserTask.vue' import ServiceTask from './task-components/ServiceTask.vue' import ScriptTask from './task-components/ScriptTask.vue' import ReceiveTask from './task-components/ReceiveTask.vue' +import CallActivity from './task-components/CallActivity.vue' export const installedComponent = { UserTask: { @@ -19,6 +20,10 @@ export const installedComponent = { ReceiveTask: { name: '接收任务', component: ReceiveTask + }, + CallActivity: { + name: '调用活动', + component: CallActivity } } diff --git a/src/components/bpmnProcessDesigner/package/penal/task/task-components/CallActivity.vue b/src/components/bpmnProcessDesigner/package/penal/task/task-components/CallActivity.vue new file mode 100644 index 00000000..8afba3a0 --- /dev/null +++ b/src/components/bpmnProcessDesigner/package/penal/task/task-components/CallActivity.vue @@ -0,0 +1,12 @@ + + + + +