BerniWittmann/cape-frontend

View on GitHub
src/plugins/bpmn/modules/custom-rules/rules/preventMultipleOutgoingConnectionReconnect.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Prevent Elements from having multiple outgoing connections when reconnecting a connection start
 *
 * This excludes gateways
 */

import PreventMultipleIncomingConnectionReconnectOfTypeRule
  from './abstract-rules/preventMultipleConnectionReconnectOfType'

export default class PreventMultipleOutgoingConnectionReconnectRule extends PreventMultipleIncomingConnectionReconnectOfTypeRule {
  get events() {
    return ['commandStack.connection.reconnectStart.canExecute']
  }

  get type() {
    return 'outgoing'
  }
}