"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CheckpointAction = void 0;
const index_js_1 = require("../model/index.js");
const index_js_2 = require("../services/index.js");
class CheckpointAction extends index_js_1.Action {
    get $checkpoints() {
        return this.$engine.get(index_js_2.CheckpointService);
    }
    async exec() {
        const data = await this.$checkpoints.createCheckpoint(this.label);
        await this.$checkpoints.sendCheckpoint(data);
    }
}
exports.CheckpointAction = CheckpointAction;
CheckpointAction.$type = 'Flow.checkpoint';
CheckpointAction.$icon = 'fas fa-map-marker';
CheckpointAction.$help = '';
//# sourceMappingURL=Flow.checkpoint.js.map