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

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

No files matched your search

@@ -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 字段