@pxp-nd/flow 1.1.26 → 1.1.29
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/controllers/Flow.js
CHANGED
|
@@ -719,7 +719,7 @@ let Flow = class Flow extends core_1.Controller {
|
|
|
719
719
|
//valid controllerValidation
|
|
720
720
|
const { action: { actionType } } = node;
|
|
721
721
|
const { validationController } = actionType;
|
|
722
|
-
const nodeController = new Node_2.default('flow-nd');
|
|
722
|
+
const nodeController = new Node_2.default('flow-nd', Node_1.default);
|
|
723
723
|
await nodeController.executeValidationController({ validationController, actionConfigJson: values, showException: true });
|
|
724
724
|
//end valid controller
|
|
725
725
|
const missingRequired = [];
|
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Created at : 2021-07-08 12:55:38
|
|
13
13
|
* Last modified :
|
|
14
|
+
* ISSUE DATE NAME DESCRIPTION
|
|
15
|
+
* 9141239986 16-May-2025 Mercedes Zambrana Save flagName and FlagValue
|
|
14
16
|
*/
|
|
15
17
|
import { EntityManager } from 'typeorm';
|
|
16
18
|
import { Controller } from '@pxp-nd/core';
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Created at : 2021-07-08 12:55:38
|
|
14
14
|
* Last modified :
|
|
15
|
+
* ISSUE DATE NAME DESCRIPTION
|
|
16
|
+
* 9141239986 16-May-2025 Mercedes Zambrana Save flagName and FlagValue
|
|
15
17
|
*/
|
|
16
18
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -136,7 +138,7 @@ class FlowInstance extends core_1.Controller {
|
|
|
136
138
|
return res;
|
|
137
139
|
}
|
|
138
140
|
async insert(params, manager) {
|
|
139
|
-
const { flowId, dataId, status, actionId, originName = '', originKey = '' } = params;
|
|
141
|
+
const { flowId, dataId, status, actionId, originName = '', originKey = '', flagName, flagValue } = params;
|
|
140
142
|
let flowInstance = new FlowInstance_1.default();
|
|
141
143
|
flowInstance.flowId = flowId;
|
|
142
144
|
flowInstance.dataId = dataId;
|
|
@@ -144,6 +146,10 @@ class FlowInstance extends core_1.Controller {
|
|
|
144
146
|
flowInstance.originKey = originKey;
|
|
145
147
|
flowInstance.actionId = actionId;
|
|
146
148
|
flowInstance.status = status;
|
|
149
|
+
if (flagName !== undefined && flagValue !== undefined) {
|
|
150
|
+
flowInstance.flagName = flagName;
|
|
151
|
+
flowInstance.flagValue = flagValue;
|
|
152
|
+
}
|
|
147
153
|
flowInstance = await manager.save(FlowInstance_1.default, flowInstance);
|
|
148
154
|
return flowInstance;
|
|
149
155
|
}
|
|
@@ -12,6 +12,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
/*****************************************************************************
|
|
16
|
+
* Copyright(c) 2023 Qorus Inc
|
|
17
|
+
* All rights reserved
|
|
18
|
+
*****************************************************************************
|
|
19
|
+
* NAME: FlowListGridView.tsx
|
|
20
|
+
* DEVELOPER: Favio Figueroa
|
|
21
|
+
* DESCRIPTION:
|
|
22
|
+
* REVISIONS:
|
|
23
|
+
* Date Change ID Author Description
|
|
24
|
+
* ----------- ----------- -------------- ------------------------------------
|
|
25
|
+
* 14-May-2025 9141239986 Mercedes Zambrana add flag_name and flag_value
|
|
26
|
+
* ****************************************************************************/
|
|
15
27
|
const typeorm_1 = require("typeorm");
|
|
16
28
|
const NodeInstance_1 = __importDefault(require("./NodeInstance"));
|
|
17
29
|
const Flow_1 = __importDefault(require("./Flow"));
|
|
@@ -54,6 +66,14 @@ __decorate([
|
|
|
54
66
|
(0, typeorm_1.Column)({ name: 'result_from_origen', type: 'text', nullable: false }),
|
|
55
67
|
__metadata("design:type", String)
|
|
56
68
|
], FlowInstance.prototype, "resultFromOrigen", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ name: 'flag_name', type: 'text', nullable: false }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], FlowInstance.prototype, "flagName", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ name: 'flag_value', type: 'numeric', nullable: false }),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], FlowInstance.prototype, "flagValue", void 0);
|
|
57
77
|
__decorate([
|
|
58
78
|
(0, typeorm_1.OneToMany)(() => NodeInstance_1.default, (nodeInstance) => nodeInstance.flowInstance, { eager: true }),
|
|
59
79
|
__metadata("design:type", Array)
|