bpmn-io / bpmn-js-differ

A diffing utility for BPMN 2.0 documents.
MIT License
45 stars 17 forks source link

Element type change not recognized #24

Closed nikku closed 2 months ago

nikku commented 2 months ago

Describe the Bug

As reported in https://github.com/bpmn-io/bpmn-js-differ/issues/22#issuecomment-2311988241 by @nithinssabu the linked PR likely introduced a bug where changes in element types are no longer recognized:

Before

    <bpmn:userTask id="Activity_0f5vdgx">
      <bpmn:incoming>Flow_1dqzfs7</bpmn:incoming>
      <bpmn:outgoing>Flow_099h4vv</bpmn:outgoing>
    </bpmn:userTask>

After

    <bpmn:task id="Activity_0f5vdgx">
      <bpmn:incoming>Flow_1dqzfs7</bpmn:incoming>
      <bpmn:outgoing>Flow_099h4vv</bpmn:outgoing>
    </bpmn:task>

Steps to Reproduce

  1. Open playground
  2. See changes count equals 0

Expected Behavior

Environment


Cf. downstream bug report.