BerniWittmann/cape-frontend

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

Summary

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

import PreventMultipleConnectionCreationOfTypeRule from './abstract-rules/preventMultipleConnectionCreationOfType'

export default class PreventMultipleOutgoingConnectionCreationRule extends PreventMultipleConnectionCreationOfTypeRule {
  get node() {
    return 'source'
  }

  get type() {
    return 'outgoing'
  }
}