jomarko commented on PR #4040:
URL: 
https://github.com/apache/incubator-kie-tools/pull/4040#issuecomment-6169201430

   @thiagoelg well, you probabbaly know more than me. What I can share is this
   
   ### New
   New editor produces files without `bpmn2` namespace, I am pasting only 
business rule task node with set dmn model
   ```xml
   <businessRuleTask id="_6CD42F70-1B7C-4DB2-BF04-5CAA28F941B3" name="New Task" 
implementation="http://www.jboss.org/drools/dmn";>
         <extensionElements>
           <drools:metaData name="customAsync">
             <drools:metaValue>false</drools:metaValue>
           </drools:metaData>
           <drools:metaData name="customAutoStart">
             <drools:metaValue>false</drools:metaValue>
           </drools:metaData>
         </extensionElements>
         <ioSpecification id="_5BA6037D-91F9-4BE3-A2F4-CD8D3A1EE32A">
           <dataInput id="_0D8C4657-2BDC-4369-9968-0CD4FD9CAA82" name="model" 
drools:dtype="String" itemSubjectRef="_5718F585-8DB6-4BAD-AF65-13CF411F75F8" />
           <dataInput id="_5FA653DF-6B1B-453F-88BE-9A227B24DBC8" 
name="fileName" drools:dtype="String" 
itemSubjectRef="_5718F585-8DB6-4BAD-AF65-13CF411F75F8" />
           <dataInput id="_F6EF3702-4865-482C-BF2C-53403F03C604" 
name="namespace" drools:dtype="String" 
itemSubjectRef="_5718F585-8DB6-4BAD-AF65-13CF411F75F8" />
           <inputSet id="_92921298-2BAC-495C-A8F4-D01D14D22E72">
             
<dataInputRefs>_0D8C4657-2BDC-4369-9968-0CD4FD9CAA82</dataInputRefs>
             
<dataInputRefs>_5FA653DF-6B1B-453F-88BE-9A227B24DBC8</dataInputRefs>
             
<dataInputRefs>_F6EF3702-4865-482C-BF2C-53403F03C604</dataInputRefs>
           </inputSet>
           <outputSet id="_227AB689-0FAF-4948-ADF1-7194118E6150">
           </outputSet>
         </ioSpecification>
         <dataInputAssociation id="_985B8D33-90D1-4FB8-A0F3-909BF595A419">
           <targetRef>_0D8C4657-2BDC-4369-9968-0CD4FD9CAA82</targetRef>
           <assignment id="_07A536EB-577D-47E8-9957-E9324B21D579">
             <from id="_4CC67A0E-7AA5-429C-9C5F-502DABFB8D7D" 
xsi:type="tFormalExpression">modelnametoinvoke</from>
             <to 
id="_BCD0FEA0-C932-4AFA-9ACD-835B2996BE9B">_0D8C4657-2BDC-4369-9968-0CD4FD9CAA82</to>
           </assignment>
         </dataInputAssociation>
         <dataInputAssociation id="_74FA05CC-9293-487A-B8AC-1468ACD8A547">
           <targetRef>_5FA653DF-6B1B-453F-88BE-9A227B24DBC8</targetRef>
           <assignment id="_23C3A868-E064-4FAE-8474-16370E5628C1">
             <from id="_A1300E7F-E5EA-4110-A571-56F509A94284" 
xsi:type="tFormalExpression"></from>
             <to 
id="_4617211E-3F29-4EC2-A71C-CA391320AC73">_5FA653DF-6B1B-453F-88BE-9A227B24DBC8</to>
           </assignment>
         </dataInputAssociation>
         <dataInputAssociation id="_A775C8A3-3AB5-4E33-AD20-3FDA6A31783F">
           <targetRef>_F6EF3702-4865-482C-BF2C-53403F03C604</targetRef>
           <assignment id="_EE37796C-05F3-45A9-92DD-53E1F28AB68C">
             <from id="_F0318748-91F9-44AA-BD51-ECD8C6784046" 
xsi:type="tFormalExpression"></from>
             <to 
id="_31E5834E-5EF8-42CD-8143-423F5D985131">_F6EF3702-4865-482C-BF2C-53403F03C604</to>
           </assignment>
         </dataInputAssociation>
       </businessRuleTask>
   ```
   
   it also has this in the root tag:
   ```xml
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   ```
   
   ### Classic
   while classic editor is adding everywhere `bpmn2` prefix:
   
   ```xml
       <bpmn2:businessRuleTask id="_B5E2E2C5-E146-4BA5-9AE5-0F35CB7FE07D" 
name="Task" implementation="http://www.jboss.org/drools/dmn";>
         <bpmn2:extensionElements>
           <drools:metaData name="elementname">
             <drools:metaValue><![CDATA[Task]]></drools:metaValue>
           </drools:metaData>
         </bpmn2:extensionElements>
         <bpmn2:ioSpecification>
           <bpmn2:dataInput 
id="_B5E2E2C5-E146-4BA5-9AE5-0F35CB7FE07D_modelInputX" 
drools:dtype="java.lang.String" 
itemSubjectRef="__B5E2E2C5-E146-4BA5-9AE5-0F35CB7FE07D_modelInputXItem" 
name="model"/>
           <bpmn2:inputSet>
             
<bpmn2:dataInputRefs>_B5E2E2C5-E146-4BA5-9AE5-0F35CB7FE07D_modelInputX</bpmn2:dataInputRefs>
           </bpmn2:inputSet>
         </bpmn2:ioSpecification>
         <bpmn2:dataInputAssociation>
           
<bpmn2:targetRef>_B5E2E2C5-E146-4BA5-9AE5-0F35CB7FE07D_modelInputX</bpmn2:targetRef>
           <bpmn2:assignment>
             <bpmn2:from 
xsi:type="bpmn2:tFormalExpression"><![CDATA[modelnametoinvoke]]></bpmn2:from>
             <bpmn2:to 
xsi:type="bpmn2:tFormalExpression"><![CDATA[_B5E2E2C5-E146-4BA5-9AE5-0F35CB7FE07D_modelInputX]]></bpmn2:to>
           </bpmn2:assignment>
         </bpmn2:dataInputAssociation>
       </bpmn2:businessRuleTask>
     </bpmn2:process>
     ```
     
     and it has this in the root tag:
     ```
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd 
http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 
bpsim.xsd http://www.omg.org/spec/DD/20100524/DC DC.xsd 
http://www.omg.org/spec/DD/20100524/DI DI.xsd "
     ```
     
     ### Steps
     and the issue is then very specific to a the combination of using editors
     - Use new editor to create dmn rule node
     - Use classic to do some minor changes of file
     - Use new editor to edit dmn model name od the dmn rule node
     - Use classic editor to load the file - the node will be not loaded 🔴 
     
     
     
     if the scenario is simply
     - Create the file using new editor, dmn rule node created completely
     - Continue to edit the file classic editor - this works and the ndoe is 
loaded 🟢 
     
     
     ### Normalization
   I am not author of our editor and has not enough knowledge about 
normalization and how it works. Is additional information I shared enough for 
you to know answer?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to