Project: mulestudio
Issue STUDIO-2655: Lossing enpoint reference to a global endpoint across different flow files
How to re-crecreate: (1) Create global endpoints (i.e. file:endpoint)in a dedicated flow file to store all global components. (2) Then reference the global endpoints across from separate flow files. (3) Complete the flow and test it to make sure it is working. (4) Using the graphical editor(Message Flow tab) to edit the Display Name of each node. At this point all the references will be removed, the flow will be broken. The explanation: We are trying to introduce the test driven development using the FunctionalTest. For this, we need to put all the endpoints together with their connectors to a separate dedicated flow file. Then in the src/test/resources, we create a test flow file that contains the corresponding endpoints (with the same name) that will replace the real endpoints in the functional test. However, the MuleStudio fail to recognise the global endpoints ferenced from across the separate flow file. Even worse, it keeps removing them while it is perfectlu legal in terms of mule. Suggestion of fix: option 1: Able to recognise the global endpoints across different flow files Option 2: Just ignore the attributes and values it does not understand and put a warning sign instead of removing them. This may be preferable since MuleStudio may not understand all the added feature of the Mule components... For example, MessagePropertiesTransformer has the scope attribute, this will be removed by the MuleStudio because it does not understand it. Also it will be nice not to try to create mflow files for the files in src/test/resources, so that it will not complain about the uniqueue reference etc.... I know this should be another JIRA ticket :)
Story points: 5