rez_core 2.2.231 → 2.2.232
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/module/workflow-automation/service/workflow-automation-engine.service.js +4 -0
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +4 -0
package/package.json
CHANGED
|
@@ -27,12 +27,14 @@ export class WorkflowAutomationEngineService {
|
|
|
27
27
|
eventType,
|
|
28
28
|
);
|
|
29
29
|
|
|
30
|
+
console.log(workflows, 'workflows found');
|
|
30
31
|
for (const wf of workflows) {
|
|
31
32
|
const eventMatched = await this.filterEvaluator.evaluateTriggerAttributes(
|
|
32
33
|
oldEntity,
|
|
33
34
|
newEntity,
|
|
34
35
|
wf.condition_filter_code,
|
|
35
36
|
);
|
|
37
|
+
console.log(eventMatched, 'eventMatched');
|
|
36
38
|
if (!eventMatched) continue;
|
|
37
39
|
|
|
38
40
|
const criteriaMatched = await this.filterEvaluator.evaluateCriteria(
|
|
@@ -41,6 +43,7 @@ export class WorkflowAutomationEngineService {
|
|
|
41
43
|
newEntity.id,
|
|
42
44
|
user,
|
|
43
45
|
);
|
|
46
|
+
console.log(criteriaMatched, 'criteriaMatched');
|
|
44
47
|
if (!criteriaMatched) continue;
|
|
45
48
|
|
|
46
49
|
await this.executeActions(wf.id, newEntity, user);
|
|
@@ -56,6 +59,7 @@ export class WorkflowAutomationEngineService {
|
|
|
56
59
|
const actions = await this.wfService.getActionsForRule(
|
|
57
60
|
workflow_automation_id,
|
|
58
61
|
);
|
|
62
|
+
console.log(actions, 'actions found');
|
|
59
63
|
// (this should fetch from cr_workflow_automation_action)
|
|
60
64
|
|
|
61
65
|
for (const action of actions) {
|