@nocobase/plugin-workflow 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/AddButton.d.ts +8 -0
- package/dist/client/Branch.d.ts +8 -0
- package/dist/client/CanvasContent.d.ts +8 -0
- package/dist/client/ExecutionCanvas.d.ts +8 -0
- package/dist/client/ExecutionContextProvider.d.ts +8 -0
- package/dist/client/ExecutionLink.d.ts +8 -0
- package/dist/client/ExecutionPage.d.ts +8 -0
- package/dist/client/ExecutionResourceProvider.d.ts +8 -0
- package/dist/client/FlowContext.d.ts +8 -0
- package/dist/client/WorkflowCanvas.d.ts +8 -0
- package/dist/client/WorkflowLink.d.ts +8 -0
- package/dist/client/WorkflowPage.d.ts +8 -0
- package/dist/client/WorkflowPane.d.ts +8 -0
- package/dist/client/components/CheckboxGroupWithTooltip.d.ts +8 -0
- package/dist/client/components/CollectionBlockInitializer.d.ts +8 -0
- package/dist/client/components/CollectionFieldset.d.ts +8 -0
- package/dist/client/components/DetailsBlockProvider.d.ts +8 -0
- package/dist/client/components/DrawerDescription.d.ts +8 -0
- package/dist/client/components/DrawerForm.d.ts +8 -0
- package/dist/client/components/ExecutionStatus.d.ts +8 -0
- package/dist/client/components/FieldsSelect.d.ts +8 -0
- package/dist/client/components/FilterDynamicComponent.d.ts +8 -0
- package/dist/client/components/OpenDrawer.d.ts +8 -0
- package/dist/client/components/RadioWithTooltip.d.ts +8 -0
- package/dist/client/components/SimpleDesigner.d.ts +8 -0
- package/dist/client/components/StatusButton.d.ts +8 -0
- package/dist/client/components/TriggerOptionRender.d.ts +8 -0
- package/dist/client/components/ValueBlock.d.ts +8 -0
- package/dist/client/components/index.d.ts +8 -0
- package/dist/client/components/renderEngineReference.d.ts +8 -0
- package/dist/client/constants.d.ts +8 -0
- package/dist/client/hooks/index.d.ts +8 -0
- package/dist/client/hooks/useGetAriaLabelOfAddButton.d.ts +8 -0
- package/dist/client/hooks/useRefreshActionProps.d.ts +8 -0
- package/dist/client/hooks/useTriggerWorkflowActionProps.d.ts +8 -0
- package/dist/client/hooks/useWorkflowExecuted.d.ts +8 -0
- package/dist/client/index.d.ts +8 -0
- package/dist/client/index.js +9 -0
- package/dist/client/locale/index.d.ts +8 -0
- package/dist/client/nodes/calculation.d.ts +8 -0
- package/dist/client/nodes/condition.d.ts +8 -0
- package/dist/client/nodes/create.d.ts +8 -0
- package/dist/client/nodes/destroy.d.ts +8 -0
- package/dist/client/nodes/end.d.ts +8 -0
- package/dist/client/nodes/index.d.ts +8 -0
- package/dist/client/nodes/query.d.ts +8 -0
- package/dist/client/nodes/update.d.ts +8 -0
- package/dist/client/schemas/collection.d.ts +8 -0
- package/dist/client/schemas/executions.d.ts +8 -0
- package/dist/client/schemas/workflows.d.ts +8 -0
- package/dist/client/settings/customizeSubmitToWorkflowActionSettings.d.ts +8 -0
- package/dist/client/style.d.ts +8 -0
- package/dist/client/triggers/collection.d.ts +8 -0
- package/dist/client/triggers/index.d.ts +8 -0
- package/dist/client/triggers/schedule/EndsByField.d.ts +8 -0
- package/dist/client/triggers/schedule/OnField.d.ts +8 -0
- package/dist/client/triggers/schedule/RepeatField.d.ts +8 -0
- package/dist/client/triggers/schedule/ScheduleConfig.d.ts +8 -0
- package/dist/client/triggers/schedule/constants.d.ts +8 -0
- package/dist/client/triggers/schedule/index.d.ts +8 -0
- package/dist/client/triggers/schedule/locale/Cron.zh-CN.d.ts +8 -0
- package/dist/client/utils.d.ts +8 -0
- package/dist/client/variable.d.ts +8 -0
- package/dist/externalVersion.js +19 -10
- package/dist/index.d.ts +8 -0
- package/dist/index.js +9 -0
- package/dist/node_modules/cron-parser/package.json +1 -1
- package/dist/node_modules/lru-cache/package.json +1 -1
- package/dist/server/Plugin.d.ts +14 -3
- package/dist/server/Plugin.js +27 -8
- package/dist/server/Processor.d.ts +8 -0
- package/dist/server/Processor.js +9 -0
- package/dist/server/actions/executions.d.ts +8 -0
- package/dist/server/actions/executions.js +9 -0
- package/dist/server/actions/index.d.ts +8 -0
- package/dist/server/actions/index.js +9 -0
- package/dist/server/actions/nodes.d.ts +8 -0
- package/dist/server/actions/nodes.js +9 -0
- package/dist/server/actions/workflows.d.ts +8 -0
- package/dist/server/actions/workflows.js +9 -0
- package/dist/server/collections/executions.d.ts +8 -0
- package/dist/server/collections/executions.js +14 -0
- package/dist/server/collections/flow_nodes.d.ts +8 -0
- package/dist/server/collections/flow_nodes.js +9 -0
- package/dist/server/collections/jobs.d.ts +8 -0
- package/dist/server/collections/jobs.js +9 -0
- package/dist/server/collections/workflows.d.ts +8 -0
- package/dist/server/collections/workflows.js +9 -0
- package/dist/server/constants.d.ts +8 -0
- package/dist/server/constants.js +9 -0
- package/dist/server/functions/index.d.ts +8 -0
- package/dist/server/functions/index.js +9 -0
- package/dist/server/index.d.ts +8 -0
- package/dist/server/index.js +9 -0
- package/dist/server/instructions/CalculationInstruction.d.ts +8 -0
- package/dist/server/instructions/CalculationInstruction.js +9 -0
- package/dist/server/instructions/ConditionInstruction.d.ts +8 -0
- package/dist/server/instructions/ConditionInstruction.js +9 -0
- package/dist/server/instructions/CreateInstruction.d.ts +8 -0
- package/dist/server/instructions/CreateInstruction.js +9 -0
- package/dist/server/instructions/DestroyInstruction.d.ts +8 -0
- package/dist/server/instructions/DestroyInstruction.js +9 -0
- package/dist/server/instructions/EndInstruction.d.ts +8 -0
- package/dist/server/instructions/EndInstruction.js +9 -0
- package/dist/server/instructions/QueryInstruction.d.ts +8 -0
- package/dist/server/instructions/QueryInstruction.js +9 -0
- package/dist/server/instructions/UpdateInstruction.d.ts +8 -0
- package/dist/server/instructions/UpdateInstruction.js +9 -0
- package/dist/server/instructions/index.d.ts +8 -0
- package/dist/server/instructions/index.js +9 -0
- package/dist/server/migrations/20221129153547-calculation-variables.d.ts +8 -0
- package/dist/server/migrations/20221129153547-calculation-variables.js +9 -0
- package/dist/server/migrations/20230221032941-change-request-body-type.d.ts +8 -0
- package/dist/server/migrations/20230221032941-change-request-body-type.js +9 -0
- package/dist/server/migrations/20230221071831-calculation-expression.d.ts +8 -0
- package/dist/server/migrations/20230221071831-calculation-expression.js +9 -0
- package/dist/server/migrations/20230221121203-condition-calculation.d.ts +8 -0
- package/dist/server/migrations/20230221121203-condition-calculation.js +9 -0
- package/dist/server/migrations/20230221162902-jsonb-to-json.d.ts +8 -0
- package/dist/server/migrations/20230221162902-jsonb-to-json.js +9 -0
- package/dist/server/migrations/20230411034722-manual-multi-form.d.ts +8 -0
- package/dist/server/migrations/20230411034722-manual-multi-form.js +9 -0
- package/dist/server/migrations/20230612021134-manual-collection-block.d.ts +8 -0
- package/dist/server/migrations/20230612021134-manual-collection-block.js +9 -0
- package/dist/server/migrations/20230710115902-manual-action-values.d.ts +8 -0
- package/dist/server/migrations/20230710115902-manual-action-values.js +9 -0
- package/dist/server/migrations/20230809113132-workflow-options.d.ts +8 -0
- package/dist/server/migrations/20230809113132-workflow-options.js +9 -0
- package/dist/server/migrations/20231024172342-add-node-key.d.ts +8 -0
- package/dist/server/migrations/20231024172342-add-node-key.js +9 -0
- package/dist/server/migrations/20231122143143-split-to-plugins.d.ts +8 -0
- package/dist/server/migrations/20231122143143-split-to-plugins.js +9 -0
- package/dist/server/migrations/20240115220721-add-node-key-to-job.d.ts +8 -0
- package/dist/server/migrations/20240115220721-add-node-key-to-job.js +9 -0
- package/dist/server/triggers/CollectionTrigger.d.ts +8 -0
- package/dist/server/triggers/CollectionTrigger.js +9 -0
- package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.d.ts +8 -0
- package/dist/server/triggers/ScheduleTrigger/DateFieldScheduleTrigger.js +21 -6
- package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.d.ts +13 -7
- package/dist/server/triggers/ScheduleTrigger/StaticScheduleTrigger.js +12 -2
- package/dist/server/triggers/ScheduleTrigger/index.d.ts +8 -3
- package/dist/server/triggers/ScheduleTrigger/index.js +22 -12
- package/dist/server/triggers/ScheduleTrigger/utils.d.ts +8 -0
- package/dist/server/triggers/ScheduleTrigger/utils.js +9 -0
- package/dist/server/triggers/index.d.ts +8 -0
- package/dist/server/triggers/index.js +9 -0
- package/dist/server/types/Execution.d.ts +8 -0
- package/dist/server/types/Execution.js +9 -0
- package/dist/server/types/FlowNode.d.ts +8 -0
- package/dist/server/types/FlowNode.js +9 -0
- package/dist/server/types/Job.d.ts +8 -0
- package/dist/server/types/Job.js +9 -0
- package/dist/server/types/Workflow.d.ts +8 -0
- package/dist/server/types/Workflow.js +9 -0
- package/dist/server/types/index.d.ts +8 -0
- package/dist/server/types/index.js +9 -0
- package/dist/server/utils.d.ts +8 -0
- package/dist/server/utils.js +9 -0
- package/dist/swagger/index.d.ts +8 -0
- package/dist/swagger/index.js +9 -0
- package/package.json +3 -3
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __create = Object.create;
|
|
2
11
|
var __defProp = Object.defineProperty;
|
|
3
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -289,12 +298,18 @@ class ScheduleTrigger {
|
|
|
289
298
|
appends: workflow.config.appends,
|
|
290
299
|
transaction
|
|
291
300
|
});
|
|
292
|
-
const
|
|
293
|
-
this.cache.delete(
|
|
294
|
-
this.workflow.trigger(
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
301
|
+
const eventKey = `${workflow.id}:${recordPk}@${nextTime}`;
|
|
302
|
+
this.cache.delete(eventKey);
|
|
303
|
+
this.workflow.trigger(
|
|
304
|
+
workflow,
|
|
305
|
+
{
|
|
306
|
+
data: data.toJSON(),
|
|
307
|
+
date: new Date(nextTime)
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
eventKey
|
|
311
|
+
}
|
|
312
|
+
);
|
|
298
313
|
if (!workflow.config.repeat || workflow.config.limit && workflow.allExecuted >= workflow.config.limit - 1) {
|
|
299
314
|
return;
|
|
300
315
|
}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
import type Plugin from '../../Plugin';
|
|
10
|
+
import { WorkflowModel } from '../../types';
|
|
2
11
|
export default class StaticScheduleTrigger {
|
|
3
12
|
workflow: Plugin;
|
|
4
13
|
private timers;
|
|
5
14
|
constructor(workflow: Plugin);
|
|
6
|
-
inspect(workflows:
|
|
7
|
-
getNextTime({ config, allExecuted }:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, currentDate: any, nextSecond?: boolean): any;
|
|
11
|
-
schedule(workflow: any, nextTime: any, toggle?: boolean): void;
|
|
12
|
-
trigger(workflow: any, time: any): Promise<void>;
|
|
15
|
+
inspect(workflows: WorkflowModel[]): void;
|
|
16
|
+
getNextTime({ config, allExecuted }: WorkflowModel, currentDate: Date, nextSecond?: boolean): number;
|
|
17
|
+
schedule(workflow: WorkflowModel, nextTime: number, toggle?: boolean): void;
|
|
18
|
+
trigger(workflow: WorkflowModel, time: number): Promise<void>;
|
|
13
19
|
on(workflow: any): void;
|
|
14
20
|
off(workflow: any): void;
|
|
15
21
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __create = Object.create;
|
|
2
11
|
var __defProp = Object.defineProperty;
|
|
3
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -124,8 +133,9 @@ class StaticScheduleTrigger {
|
|
|
124
133
|
}
|
|
125
134
|
}
|
|
126
135
|
async trigger(workflow, time) {
|
|
127
|
-
|
|
128
|
-
this.
|
|
136
|
+
const eventKey = `${workflow.id}@${time}`;
|
|
137
|
+
this.timers.delete(eventKey);
|
|
138
|
+
this.workflow.trigger(workflow, { date: new Date(time) }, { eventKey });
|
|
129
139
|
if (!workflow.config.repeat || workflow.config.limit && workflow.allExecuted >= workflow.config.limit - 1) {
|
|
130
140
|
return;
|
|
131
141
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
2
9
|
import Trigger from '..';
|
|
3
10
|
import type Plugin from '../../Plugin';
|
|
4
|
-
import { WorkflowModel } from '../../types';
|
|
5
11
|
export default class ScheduleTrigger extends Trigger {
|
|
6
12
|
sync: boolean;
|
|
7
13
|
private modes;
|
|
@@ -9,5 +15,4 @@ export default class ScheduleTrigger extends Trigger {
|
|
|
9
15
|
private getTrigger;
|
|
10
16
|
on(workflow: any): void;
|
|
11
17
|
off(workflow: any): void;
|
|
12
|
-
validateEvent(workflow: WorkflowModel, context: any, options: Transactionable): Promise<boolean>;
|
|
13
18
|
}
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __create = Object.create;
|
|
2
11
|
var __defProp = Object.defineProperty;
|
|
3
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -59,16 +68,17 @@ class ScheduleTrigger extends import__.default {
|
|
|
59
68
|
trigger.off(workflow);
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
|
-
async validateEvent(workflow, context, options) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
// async validateEvent(workflow: WorkflowModel, context: any, options: Transactionable): Promise<boolean> {
|
|
72
|
+
// if (!context.date) {
|
|
73
|
+
// return false;
|
|
74
|
+
// }
|
|
75
|
+
// const existed = await workflow.getExecutions({
|
|
76
|
+
// attributes: ['id'],
|
|
77
|
+
// where: {
|
|
78
|
+
// 'context.date': context.date instanceof Date ? context.date.toISOString() : context.date,
|
|
79
|
+
// },
|
|
80
|
+
// transaction: options.transaction,
|
|
81
|
+
// });
|
|
82
|
+
// return !existed.length;
|
|
83
|
+
// }
|
|
74
84
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
export declare const SCHEDULE_MODE: {
|
|
2
10
|
readonly STATIC: 0;
|
|
3
11
|
readonly DATE_FIELD: 1;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
import { Transactionable } from '@nocobase/database';
|
|
2
10
|
import type Plugin from '../Plugin';
|
|
3
11
|
import type { WorkflowModel } from '../types';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
import { BelongsToGetAssociationMixin, Database, HasManyGetAssociationsMixin, Model } from '@nocobase/database';
|
|
2
10
|
import JobModel from './Job';
|
|
3
11
|
import WorkflowModel from './Workflow';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
import { BelongsToGetAssociationMixin, Database, Model } from '@nocobase/database';
|
|
2
10
|
import WorkflowModel from './Workflow';
|
|
3
11
|
export default class FlowNodeModel extends Model {
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
import { BelongsToGetAssociationMixin, Model } from '@nocobase/database';
|
|
2
10
|
import FlowNodeModel from './FlowNode';
|
|
3
11
|
export default class JobModel extends Model {
|
package/dist/server/types/Job.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
import { Database, HasManyCountAssociationsMixin, HasManyCreateAssociationMixin, HasManyGetAssociationsMixin, Model } from '@nocobase/database';
|
|
2
10
|
import ExecutionModel from './Execution';
|
|
3
11
|
import FlowNodeModel from './FlowNode';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
export type { default as WorkflowModel } from './Workflow';
|
|
2
10
|
export type { default as FlowNodeModel } from './FlowNode';
|
|
3
11
|
export type { default as ExecutionModel } from './Execution';
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
package/dist/server/utils.d.ts
CHANGED
|
@@ -1 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
export declare function toJSON(data: any): any;
|
package/dist/server/utils.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
package/dist/swagger/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
1
9
|
declare const _default: {
|
|
2
10
|
openapi: string;
|
|
3
11
|
info: {
|
package/dist/swagger/index.js
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
1
10
|
var __defProp = Object.defineProperty;
|
|
2
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
12
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流",
|
|
5
5
|
"description": "A powerful BPM tool that provides foundational support for business automation, with the capability to extend unlimited triggers and nodes.",
|
|
6
6
|
"description.zh-CN": "一个强大的 BPM 工具,为业务自动化提供基础支持,并且可任意扩展更多的触发器和节点。",
|
|
7
|
-
"version": "1.0.0-alpha.
|
|
7
|
+
"version": "1.0.0-alpha.4",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/workflow",
|
|
11
11
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/workflow",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@nocobase/plugin-workflow-test": "1.0.0-alpha.
|
|
13
|
+
"@nocobase/plugin-workflow-test": "1.0.0-alpha.4"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@ant-design/icons": "5.x",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@nocobase/test": "1.x",
|
|
45
45
|
"@nocobase/utils": "1.x"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "7a7005ce3bddf33498580a6486c45b5d9ea64ffb",
|
|
48
48
|
"keywords": [
|
|
49
49
|
"Workflow"
|
|
50
50
|
]
|