define(["require", "exports", "./flow_node_handler"], function (require, exports, flow_node_handler_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    class GatewayHandler extends flow_node_handler_1.FlowNodeHandler {
        getIncomingSequenceFlowsFor(flowNodeId, processDefinition) {
            const result = [];
            processDefinition.flowDefCollection.data.forEach((sequenceFlow) => {
                if (sequenceFlow.target.id === flowNodeId) {
                    result.push(sequenceFlow);
                }
            });
            return result;
        }
        getOutgoingSequenceFlowsFor(flowNodeId, processDefinition) {
            const result = [];
            processDefinition.flowDefCollection.data.forEach((sequenceFlow) => {
                if (sequenceFlow.source.id === flowNodeId) {
                    result.push(sequenceFlow);
                }
            });
            return result;
        }
    }
    exports.GatewayHandler = GatewayHandler;
});

//# sourceMappingURL=gateway_handler.js.map
