import { jsx as _jsx } from "react/jsx-runtime";
import { BaseFlowStep } from "../BaseFlowStep";
import { XExpressionDefinition } from "../../../Expressions/XExpressionDefinition";
import { BooleanDataDefinition } from "../../../Common/Data/Definitions/BooleanDataDefinition";
import { ExpressionEditUI } from "./ExpressionEditUI";
import { XDataDefinition } from "../../../Common/Data/XDataDefinition";
export class RunExpression extends BaseFlowStep {
    constructor() {
        super();
        this.expression = new XExpressionDefinition();
        this.expression.executionResult = new BooleanDataDefinition();
        this.expression.inputData = () => {
            var _a, _b;
            return ((_b = (_a = this.sequence) === null || _a === void 0 ? void 0 : _a.flow) === null || _b === void 0 ? void 0 : _b.getInputDefinition()) || new XDataDefinition();
        };
    }
    renderEditUI() {
        return _jsx(ExpressionEditUI, { expression: this.expression }, void 0);
    }
    run(data, complete) { }
}
//# sourceMappingURL=ExpressionSteps.js.map