UNPKG

@nocobase/plugin-workflow-notification

Version:
27 lines (26 loc) 816 B
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import { Processor, Instruction, FlowNodeModel } from '@nocobase/plugin-workflow'; export default class extends Instruction { run(node: FlowNodeModel, prevJob: any, processor: Processor): Promise<{ status: 1 | -1; result: any; } | { status: 1 | -2; result: any; }>; resume(node: FlowNodeModel, job: any, processor: Processor): Promise<any>; test(config: any): Promise<{ status: 1; result: any; } | { status: -1; result: any; }>; }