@pxp-nd/flow 1.0.59 → 1.0.61

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.
@@ -96,7 +96,7 @@ let NodeInstance = class NodeInstance extends core_1.Controller {
96
96
  for (const nodeConnection of nodeConnectionList) {
97
97
  const condition = lodash_1.default.template(nodeConnection.condition)(resultFromOrigin);
98
98
  const evalCondition = eval(condition);
99
- if (evalCondition) {
99
+ if (!nodeConnection.condition || evalCondition) {
100
100
  const nodeRes = await (0, core_1.__)(Node_1.default.findOne(nodeConnection.nodeIdChild));
101
101
  await this.RecursiveInstance({
102
102
  node: nodeRes,
@@ -1,5 +1,5 @@
1
1
  import { PxpEntity } from '@pxp-nd/common';
2
- export default class Action extends PxpEntity {
2
+ export default class FlowLog extends PxpEntity {
3
3
  flowLogId: number;
4
4
  errorCustomMessage: string;
5
5
  errorMessage: string;
@@ -11,25 +11,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const typeorm_1 = require("typeorm");
13
13
  const common_1 = require("@pxp-nd/common");
14
- let Action = class Action extends common_1.PxpEntity {
14
+ let FlowLog = class FlowLog extends common_1.PxpEntity {
15
15
  };
16
16
  __decorate([
17
17
  (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'flow_log_id' }),
18
18
  __metadata("design:type", Number)
19
- ], Action.prototype, "flowLogId", void 0);
19
+ ], FlowLog.prototype, "flowLogId", void 0);
20
20
  __decorate([
21
21
  (0, typeorm_1.Column)({ name: 'error_custom_message', type: 'varchar', nullable: false, length: 2000 }),
22
22
  __metadata("design:type", String)
23
- ], Action.prototype, "errorCustomMessage", void 0);
23
+ ], FlowLog.prototype, "errorCustomMessage", void 0);
24
24
  __decorate([
25
25
  (0, typeorm_1.Column)({ name: 'error_message', type: 'varchar', nullable: false, length: 2000 }),
26
26
  __metadata("design:type", String)
27
- ], Action.prototype, "errorMessage", void 0);
27
+ ], FlowLog.prototype, "errorMessage", void 0);
28
28
  __decorate([
29
- (0, typeorm_1.Column)({ type: 'text', nullable: false }),
29
+ (0, typeorm_1.Column)({ name: 'stack_trace', type: 'text', nullable: true }),
30
30
  __metadata("design:type", String)
31
- ], Action.prototype, "stackTrace", void 0);
32
- Action = __decorate([
33
- (0, typeorm_1.Entity)({ name: 'twf_action' })
34
- ], Action);
35
- exports.default = Action;
31
+ ], FlowLog.prototype, "stackTrace", void 0);
32
+ FlowLog = __decorate([
33
+ (0, typeorm_1.Entity)({ name: 'twf_flow_log' })
34
+ ], FlowLog);
35
+ exports.default = FlowLog;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",