kbowers-ibm commented on PR #3555:
URL: 
https://github.com/apache/incubator-kie-tools/pull/3555#issuecomment-4564106735

   Regarding __messageItemDefinition, its primary purpose is to reduce XML 
bloat.
   
   In the old editor, every message gets its own itemDefinition using the 
format ${messageName}Type. That itemDefinition is then linked to a data type 
via the structureRef property whenever the message's data mapping is changed.
   
   In the new editor, all messages are assigned a shared messageItemDefinition 
by default. When a message's data mapping is updated, the message is linked 
directly to the appropriate itemDefinition instead which has the appropriate 
type in it's structureRef already.
   
   This approach is more consistent with the BPMN specification, since messages 
should reference the ID of the target itemDefinition, which is expected to be 
unique. In contrast, the ${messageName}Type pattern used by the old editor does 
not guarantee uniqueness and can result in unnecessary duplication of 
itemDefinition elements.


-- 
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