Merged PR 70: BUG527:エラーの共通処理追加

各の内容を対応しました。
1.エラーの共通処理追加
2.各アクションのtry..catch中のエラー関連処理の対応
3.BUG527,521,522,514,504修正

Related work items: #504, #514, #521, #522, #525, #527
This commit is contained in:
Shohtetsu Ma
2024-07-31 09:50:18 +00:00
committed by Takuto Yoshida(タクト)
23 changed files with 351 additions and 123 deletions

View File

@@ -1,5 +1,5 @@
import { actionAddins } from ".";
import { IAction,IActionResult, IActionNode, IActionProperty, IField} from "../types/ActionTypes";
import { IAction,IActionResult, IActionNode, IActionProperty, IField, IContext} from "../types/ActionTypes";
/**
* アクションの属性定義
*/
@@ -32,7 +32,7 @@ export class StrCountCheckAciton implements IAction{
* @param event
* @returns
*/
async process(actionNode:IActionNode,event:any):Promise<IActionResult> {
async process(actionNode:IActionNode,event:any,context:IContext):Promise<IActionResult> {
let result={
canNext:true,
result:false
@@ -63,8 +63,7 @@ export class StrCountCheckAciton implements IAction{
return result;
}catch(error){
event.error=error;
console.error(error);
context.errors.handleError(error,actionNode);
result.canNext=false;
return result;
}