@pxp-nd/flow 1.1.1 → 1.1.2

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.
@@ -326,25 +326,29 @@ let Flow = class Flow extends core_1.Controller {
326
326
  }
327
327
  }
328
328
  if (flowIdDel.action.actionType.name === 'CHAINED FLOW') {
329
+ console.log('CHAINED');
329
330
  if (((_a = flowIdDel.action) === null || _a === void 0 ? void 0 : _a.configJsonTemplate) && flowIdDel.actionConfigJson) {
330
331
  try {
331
332
  const parsedConfig = JSON.parse(flowIdDel.action.configJsonTemplate);
332
333
  const parsedValues = JSON.parse(flowIdDel.actionConfigJson);
334
+ console.log('parsedConfig', parsedConfig);
335
+ console.log('parsedValues', parsedValues);
333
336
  if (parsedConfig.deleteController && parsedValues.flowId) {
334
337
  const params = {
335
338
  flowId: parsedValues.flowId,
336
339
  };
340
+ console.log('params', params);
337
341
  const config = {
338
342
  method: "post",
339
- url: `http://localhost:${process.env.PORT}/api/${parsedConfig.deleteController}`,
343
+ url: `http://localhost:${process.env.PORT}/api/${parsedConfig.addController}`,
340
344
  headers: {
341
345
  Authorization: "" + process.env.TOKEN_PXP_ND + "",
342
346
  "Content-Type": "application/json",
343
347
  },
344
348
  data: params,
345
349
  };
350
+ console.log('config', config);
346
351
  const resControllerAxios = await (0, axios_1.default)(config);
347
- console.log('resControllerAxios.data', resControllerAxios.data);
348
352
  }
349
353
  }
350
354
  catch (error) {
@@ -17,4 +17,5 @@ export default class Flow extends PxpEntity {
17
17
  modifiedBy: string;
18
18
  templateType: string;
19
19
  flowType: string;
20
+ isActiveFlow: number;
20
21
  }
@@ -25,6 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  * 04-Sep-2023 SP08SEP23 Rensi Arteaga add modified at and by
26
26
  * 06-Dec-2024 8001237262 Mercedes Zambrana add flow_type
27
27
  * 31-Jan-2025 8035304698 Mercedes Zambrana Change code to string
28
+ * 11-Feb-2025 8353091310 Merecedes Zambrana Add isActive
28
29
  ****************************************************************************/
29
30
  const typeorm_1 = require("typeorm");
30
31
  const FlowInstance_1 = __importDefault(require("./FlowInstance"));
@@ -92,6 +93,10 @@ __decorate([
92
93
  (0, typeorm_1.Column)({ name: 'flow_type', type: 'varchar', nullable: true, length: 100 }),
93
94
  __metadata("design:type", String)
94
95
  ], Flow.prototype, "flowType", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)({ name: 'is_active', type: 'int', nullable: false }),
98
+ __metadata("design:type", Number)
99
+ ], Flow.prototype, "isActiveFlow", void 0);
95
100
  Flow = __decorate([
96
101
  (0, typeorm_1.Entity)({ name: 'twf_flow' })
97
102
  ], Flow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.1.01",
3
+ "version": "1.1.02",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",