노드 수정

This commit is contained in:
kjs
2025-10-08 09:39:13 +09:00
parent 258bd80201
commit e48cc4decc
8 changed files with 1000 additions and 18 deletions

View File

@@ -1866,10 +1866,25 @@ export class NodeFlowExecutionService {
const results = conditions.map((condition: any) => {
const fieldValue = inputData[condition.field];
// 🔥 비교 값 타입 확인: "field" (필드 참조) 또는 "static" (고정값)
let compareValue = condition.value;
if (condition.valueType === "field") {
// 필드 참조: inputData에서 해당 필드의 값을 가져옴
compareValue = inputData[condition.value];
logger.info(
`🔄 필드 참조 비교: ${condition.field} (${fieldValue}) vs ${condition.value} (${compareValue})`
);
} else {
logger.info(
`📊 고정값 비교: ${condition.field} (${fieldValue}) vs ${compareValue}`
);
}
return this.evaluateCondition(
fieldValue,
condition.operator,
condition.value
compareValue
);
});
@@ -1878,7 +1893,7 @@ export class NodeFlowExecutionService {
? results.some((r: boolean) => r)
: results.every((r: boolean) => r);
logger.info(`🔍 조건 평가 결과: ${result}`);
logger.info(`🔍 조건 평가 결과: ${result} (${logic} 로직)`);
return result;
}