feat: 删除http任务组件图标,改成服务任务的任务类型下拉框中选择
parent
69831144fb
commit
50c7d47984
|
|
@ -89,25 +89,6 @@ F.prototype.getPaletteEntries = function () {
|
||||||
create.start(event, elementFactory.createParticipantShape())
|
create.start(event, elementFactory.createParticipantShape())
|
||||||
}
|
}
|
||||||
|
|
||||||
function createHttpServiceTask(event) {
|
|
||||||
const httpTask = elementFactory.createShape({
|
|
||||||
type: 'bpmn:ServiceTask'
|
|
||||||
})
|
|
||||||
|
|
||||||
const businessObject = httpTask.businessObject
|
|
||||||
|
|
||||||
if (typeof businessObject.set === 'function') {
|
|
||||||
businessObject.set('flowable:type', 'http')
|
|
||||||
} else {
|
|
||||||
businessObject['flowable:type'] = 'http'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!businessObject.name) {
|
|
||||||
businessObject.name = translate('HTTP Task')
|
|
||||||
}
|
|
||||||
|
|
||||||
create.start(event, httpTask)
|
|
||||||
}
|
|
||||||
|
|
||||||
assign(actions, {
|
assign(actions, {
|
||||||
'hand-tool': {
|
'hand-tool': {
|
||||||
|
|
@ -197,15 +178,6 @@ F.prototype.getPaletteEntries = function () {
|
||||||
'bpmn-icon-service',
|
'bpmn-icon-service',
|
||||||
translate('Create Service Task')
|
translate('Create Service Task')
|
||||||
),
|
),
|
||||||
'create.http-service-task': {
|
|
||||||
group: 'activity',
|
|
||||||
className: 'bpmn-icon-service',
|
|
||||||
title: translate('Create HTTP Task'),
|
|
||||||
action: {
|
|
||||||
dragstart: createHttpServiceTask,
|
|
||||||
click: createHttpServiceTask
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'create.data-object': createAction(
|
'create.data-object': createAction(
|
||||||
'bpmn:DataObjectReference',
|
'bpmn:DataObjectReference',
|
||||||
'data-object',
|
'data-object',
|
||||||
|
|
|
||||||
|
|
@ -96,25 +96,6 @@ PaletteProvider.prototype.getPaletteEntries = function () {
|
||||||
create.start(event, elementFactory.createParticipantShape())
|
create.start(event, elementFactory.createParticipantShape())
|
||||||
}
|
}
|
||||||
|
|
||||||
function createHttpServiceTask(event) {
|
|
||||||
const httpTask = elementFactory.createShape({
|
|
||||||
type: 'bpmn:ServiceTask'
|
|
||||||
})
|
|
||||||
|
|
||||||
const businessObject = httpTask.businessObject
|
|
||||||
|
|
||||||
if (typeof businessObject.set === 'function') {
|
|
||||||
businessObject.set('flowable:type', 'http')
|
|
||||||
} else {
|
|
||||||
businessObject['flowable:type'] = 'http'
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!businessObject.name) {
|
|
||||||
businessObject.name = translate('HTTP Task')
|
|
||||||
}
|
|
||||||
|
|
||||||
create.start(event, httpTask)
|
|
||||||
}
|
|
||||||
|
|
||||||
assign(actions, {
|
assign(actions, {
|
||||||
'hand-tool': {
|
'hand-tool': {
|
||||||
|
|
@ -197,15 +178,6 @@ PaletteProvider.prototype.getPaletteEntries = function () {
|
||||||
'bpmn-icon-service',
|
'bpmn-icon-service',
|
||||||
translate('Create Service Task')
|
translate('Create Service Task')
|
||||||
),
|
),
|
||||||
'create.http-service-task': {
|
|
||||||
group: 'activity',
|
|
||||||
className: 'bpmn-icon-service',
|
|
||||||
title: translate('Create HTTP Task'),
|
|
||||||
action: {
|
|
||||||
dragstart: createHttpServiceTask,
|
|
||||||
click: createHttpServiceTask
|
|
||||||
}
|
|
||||||
},
|
|
||||||
'create.data-object': createAction(
|
'create.data-object': createAction(
|
||||||
'bpmn:DataObjectReference',
|
'bpmn:DataObjectReference',
|
||||||
'data-object',
|
'data-object',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue