mirror of
https://github.com/nocobase/nocobase.git
synced 2026-12-06 22:23:41 +08:00
* feat: open-source plugin source code * fix: fdw * feat: update readme.md * fix: gitignore * fix: peerDependencies * fix: remove zh-cn.md * feat: update license * fix: peerDependencies * fix: peerDependencies * test(ai): fix breaking test case of tools loader * fix(verification): dep * fix: deps * fix: version * feat: plugin-comments * fix: deps --------- Co-authored-by: Drol <cgyrock@gmail.com> Co-authored-by: xilesun <2013xile@gmail.com>
26 lines
569 B
TypeScript
26 lines
569 B
TypeScript
import { Plugin } from '@nocobase/server';
|
|
import WorkflowPlugin from '@nocobase/plugin-workflow';
|
|
|
|
import ScriptInstruction from './ScriptInstruction';
|
|
|
|
export class PluginWorkflowScriptServer extends Plugin {
|
|
async afterAdd() {}
|
|
|
|
async beforeLoad() {}
|
|
|
|
async load() {
|
|
const workflowPlugin = this.app.pm.get(WorkflowPlugin) as WorkflowPlugin;
|
|
workflowPlugin.registerInstruction('script', ScriptInstruction);
|
|
}
|
|
|
|
async install() {}
|
|
|
|
async afterEnable() {}
|
|
|
|
async afterDisable() {}
|
|
|
|
async remove() {}
|
|
}
|
|
|
|
export default PluginWorkflowScriptServer;
|