UNPKG

@nocobase/plugin-workflow

Version:

A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.

30 lines (29 loc) 1.14 kB
/** * 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 type { BranchContextValue } from './BranchContext'; export declare function linkNodes(nodes: any): void; export declare function traverseSchema(schema: any, fn: any): void; export declare function getWorkflowDetailPath(id: string | number): string; export declare function getWorkflowExecutionsPath(id: string | number): string; type WorkflowCapabilityContext = { engine: { isWorkflowSync(workflow: any): boolean; }; workflow: any; upstream: any; branchIndex: number | null; syncOnly?: boolean; branchContext?: Pick<BranchContextValue, 'syncOnly'> | null; }; type AvailableInstruction = { async?: boolean; isAvailable?(ctx: WorkflowCapabilityContext): boolean; }; export declare function getInstructionAvailable(instruction: AvailableInstruction, ctx: WorkflowCapabilityContext): string; export {};