mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
* refactor(plugin-workflow): change api of manually execute (#5850) * feat: add subflow node * feat: add execution event * feat: add force option * feat: avoid recurring call * feat: add stack to execution * feat: add cyclic call validator * feat: collection trigger add execution stack * fix: stack * fix: manual execute * refactor(plugin-workflow): adjust api and implementent * chore: revert locale back * feat: trigger field set add scope variables * feat: add changeOnSelect * feat: variables support ID reference * feat: change locale * refactor(plugin-workflow): support execute by passing filterByTk for a record * refactor(plugin-workflow): adjust props name * fix(plugin-workflow): fix execute variable context * fix(plugin-workflow): fix variables and locales * chore(plugin-workflow): remove demo code * fix(plugin-workflow): fix import * fix(plugin-workflow): fix build error --------- Co-authored-by: mytharcher <mytharcher@gmail.com> * fix(plugin-workflow): fix schedule picker value (#6039) * fix(plugin-workflow): fix variable compoent onchange (#5964) --------- Co-authored-by: shz <huanghui9850@gmail.com>
23 lines
630 B
TypeScript
23 lines
630 B
TypeScript
/**
|
|
* 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 React, { useContext } from 'react';
|
|
|
|
export const FlowContext = React.createContext<any>({});
|
|
|
|
export function useFlowContext() {
|
|
return useContext(FlowContext);
|
|
}
|
|
|
|
export const CurrentWorkflowContext = React.createContext<any>({});
|
|
|
|
export function useCurrentWorkflowContext() {
|
|
return useContext(CurrentWorkflowContext);
|
|
}
|