BPM:增加任务监听器、执行监听器的管理

This commit is contained in:
YunaiV
2024-03-23 19:23:19 +08:00
parent faf4557783
commit 7218e71884
6 changed files with 214 additions and 21 deletions

View File

@@ -2,6 +2,7 @@ import { toRaw } from 'vue'
const bpmnInstances = () => (window as any)?.bpmnInstances
// 创建监听器实例
export function createListenerObject(options, isTask, prefix) {
debugger
const listenerObj = Object.create(null)
listenerObj.event = options.event
isTask && (listenerObj.id = options.id) // 任务监听器特有的 id 字段