tachybase_todo/packages/plugins/@nocobase/plugin-workflow-test/src/server/triggers.ts
Junyi fae544d1b1
fix(plugin-workflow): fix collection cycling triggering (#3448)
* fix(plugin-workflow): fix collection cycling triggering

* fix(plugin-workflow-test): fix test trigger

* fix(plugin-workflow): fix sqlite transaction triggering
2024-01-27 22:46:19 +08:00

20 lines
328 B
TypeScript

export default {
syncTrigger: class {
constructor(public readonly workflow) {}
on() {}
off() {}
sync = true;
validateEvent() {
return true;
}
},
asyncTrigger: class {
constructor(public readonly workflow) {}
on() {}
off() {}
validateEvent() {
return true;
}
},
};