flowed
Version:
A fast and reliable flow engine for orchestration and more uses in *Node.js*, *Deno* and the browser
19 lines • 577 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FlowStopped = void 0;
const _1 = require(".");
const types_1 = require("../../types");
class FlowStopped extends _1.FlowState {
getStateCode() {
return types_1.FlowStateEnum.Stopped;
}
reset() {
this.setState(types_1.FlowStateEnum.Ready);
this.runStatus.initRunStatus(this.runStatus.spec);
}
getSerializableState() {
return this.runStatus.toSerializable();
}
}
exports.FlowStopped = FlowStopped;
//# sourceMappingURL=flow-stopped.js.map