BUG527:エラーの共通処理追加
This commit is contained in:
@@ -83,13 +83,13 @@ export class DataProcessingAction implements IAction {
|
||||
}
|
||||
|
||||
async process(
|
||||
nodes: IActionNode,
|
||||
actionNode: IActionNode,
|
||||
event: any,
|
||||
context: IContext
|
||||
): Promise<IActionResult> {
|
||||
this.actionProps = nodes.actionProps;
|
||||
this.actionProps = actionNode.actionProps;
|
||||
|
||||
this.props = nodes.ActionValue as IDataProcessingProps;
|
||||
this.props = actionNode.ActionValue as IDataProcessingProps;
|
||||
const condition = JSON.parse(this.props.condition) as Condition;
|
||||
let result = {
|
||||
canNext: true,
|
||||
@@ -118,12 +118,7 @@ export class DataProcessingAction implements IAction {
|
||||
}
|
||||
return result;
|
||||
} catch (error) {
|
||||
console.error("データ集計中例外が発生しました。", error);
|
||||
if(error instanceof Error){
|
||||
event.error = `データ集計中例外が発生しました。 ${error.message}`;
|
||||
}else{
|
||||
event.error = "データ集計中例外が発生しました。";
|
||||
}
|
||||
context.errors.handleError(error,actionNode);
|
||||
result.canNext = false;
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user