CustomRules.js 339 B

12345678910111213141516
  1. import BpmnRules from 'bpmn-js/lib/features/rules/BpmnRules'
  2. import inherits from 'inherits'
  3. export default function CustomRules(eventBus) {
  4. BpmnRules.call(this, eventBus)
  5. }
  6. inherits(CustomRules, BpmnRules)
  7. CustomRules.prototype.canDrop = function () {
  8. return false
  9. }
  10. CustomRules.prototype.canMove = function () {
  11. return false
  12. }