/** * 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 Joi from 'joi'; import WorkflowPlugin, { Processor, Instruction, JobModel } from '@nocobase/plugin-workflow'; export default class extends Instruction { workflow: WorkflowPlugin; timers: Map; configSchema: Joi.ObjectSchema; constructor(workflow: WorkflowPlugin); load: () => Promise; unload: () => void; schedule(job: any): void; trigger(jobOrId: JobModel | string): Promise; run(node: any, prevJob: any, processor: Processor): Promise; resume(node: any, prevJob: any, processor: Processor): Promise; }