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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user