アクションフローBugFix

This commit is contained in:
2024-03-27 02:01:12 +09:00
parent 4c482ea289
commit 3be4402239
3 changed files with 9 additions and 5 deletions

View File

@@ -328,7 +328,7 @@ export class ConditionTree {
}
if(object.objectType==='field'){
const fieldValue = context.record[object.code];
if(fieldValue.type==='NUMBER'){
if(fieldValue.type==='NUMBER' && fieldValue.value!==undefined){
return Number(fieldValue.value);
}else{
return fieldValue.value;

View File

@@ -38,7 +38,11 @@ export class ActionProcess{
if(action!==undefined){
result = await action.process(nextAction,this.event,this.context);
}
const nextInput = nextAction.outputPoints!==undefined?result.result||'':'';
let nextInput = '';
//outputPoints一つ以上の場合、次のInputPointは戻り値を設定する
if(nextAction.outputPoints && nextAction.outputPoints.length>1){
nextInput = result.result||'';
}
id=nextAction.nextNodeIds.get(nextInput);
if(id===undefined) return;
nextAction = this.flow.findNodeById(id);