throw-exception-node.ts 1.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
import { ILogicNode } from '@/interface/logic';
import { UIActionContext } from '../uiaction-context';
import { UILogicNodeBase } from './logic-node-base';
/**
 * 抛出异常节点
 *
 * @export
 * @class UILogicThrowExceptionNode
 */
export class UILogicThrowExceptionNode extends UILogicNodeBase {

    constructor() {
        super();
    }

    /**
     * 执行节点
     *
     * @param {ILogicNode} logicNode 逻辑节点模型数据
     * @param {UIActionContext} actionContext 界面逻辑上下文
     * @memberof UILogicThrowExceptionNode
     */
    public async executeNode(logicNode: ILogicNode, actionContext: UIActionContext) {
        // actionContext.actionContainer.$throw(logicNode.errorInfo);
        // actionContext.bindLastReturnParam(null);
        // console.log(`已完成执行${logicNode?.name}节点,操作参数数据如下:`);
        // if (actionContext.paramsMap && (actionContext.paramsMap.size > 0)) {
        //     for (let [key, value] of actionContext.paramsMap) {
        //         console.log(`${key}:`, value.getReal());
        //     }
        // }
    }
}