bpmn-js-differ icon indicating copy to clipboard operation
bpmn-js-differ copied to clipboard

SequenceFlow type change is not recognized

Open kollerdroid opened this issue 3 years ago • 1 comments

SequenceFlow element type toggling (eg.: Sequence flow -> Default flow) is not recognized as a change. Label change works fine.

_changed property of diff function result should contain something similar:

_changed : {
  Gateway_id: {
     attrs: {
        default: {
          oldValue: undefined,
          newValue: 'Flow_id' 
        }
     }
  }
}

Object model contains this default attribute:

modeler._definitions.rootElements[0].flowElements.find(f => f.id == 'Gateway_id').default

ModdleElement {id: 'Flow_id', name: 'default', $parent: ModdleElement, …}
    $type: "bpmn:SequenceFlow"
    id: "Flow_id"
    name: "default"
    $attrs: (...)
   // ...

Library version: 2.0.2

kollerdroid avatar May 11 '22 14:05 kollerdroid

Thanks for opening this issue. I can reproduce this. Moving to backlog.

nikku avatar May 25 '22 08:05 nikku