kbowers-ibm commented on PR #3555: URL: https://github.com/apache/incubator-kie-tools/pull/3555#issuecomment-4488118533
Hi @thiagoelg Thanks for the review! The problem was that: BPMN messages were not linked to their ItemDefinitions, as all messages defaulted to the generic __messageItemDefinition with structureRef="Object" instead of referencing specific data types (e.g., Traveler, ProcessedTraveler), causing compilation failures. I've implemented a solution that links messages to ItemDefinition at three levels: 1. Message Creation/Selection (addOrGetMessages.ts) - Added optional dataType parameter - Updates message's @_itemRef to match the correct ItemDefinition when creating or retrieving messages 2. UI Filtering (MessageSelector.tsx, EventDefinitionProperties.tsx) - MessageSelector filters dropdown to show only type-compatible messages - EventDefinitionProperties extracts data type from event's dataInput/dataOutput and passes it to message operations 3. Data Mapping Sync (_dataMapping.ts) - Added updateMessageItemRefForMessageEvent() helper - Automatically updates message's itemRef when data mappings are added/changed - Handles scenario where message is assigned before data mappings exist Result: Messages now automatically link to correct ItemDefinitions whether assigned during message selection or when data mappings are added later -- 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]
