bpmn-io / bpmn-js

A BPMN 2.0 rendering toolkit and web modeler.
https://bpmn.io/toolkit/bpmn-js/
Other
8.63k stars 1.33k forks source link

Attrs are not copied #905

Closed victornikitin closed 5 years ago

victornikitin commented 5 years ago

When I try to copy element, custom attributes are not copied.

Original element xml:

<camunda:inputOutput>
  <camunda:outputParameter name="i" configName="vars">
    <camunda:script scriptFormat="JavaScript">
      <![CDATA[ {"type":"script","value":"0"} ]]>
    </camunda:script>
  </camunda:outputParameter>
</camunda:inputOutput>

After paste it is without attr configName:

<camunda:inputOutput>
  <camunda:outputParameter name="i">
    <camunda:script scriptFormat="JavaScript">
      <![CDATA[ {"type":"script","value":"0"} ]]>
    </camunda:script>
  </camunda:outputParameter>
</camunda:inputOutput>

I'm using BPMN-JS version 0.20.7 I've tested it on last version too. The same error.

barmac commented 5 years ago

Can you please provide a test case which reproduces the invalid behaviour?

pinussilvestrus commented 5 years ago

@victornikitin Any more input regarding this?

I'm going to close this since the bug couldn't be reproduced without any extra information. We are happy to reopen it if you provide the requested information.