Changes for page eMagiz Mendix Connector 3.0.0 -> 5.0.0
Last modified by Erik Bakker on 2025/02/25 16:09
From version 14.1
edited by Erik Bakker
on 2022/07/27 14:15
on 2022/07/27 14:15
Change comment:
There is no comment for this version
To version 2.4
edited by Erik Bakker
on 2022/06/13 14:33
on 2022/06/13 14:33
Change comment:
Update document after refactoring.
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -e MagizMendixConnector3.0.0>5.0.01 +migration-path-emagiz-mendix-connector-4.2.0-to-5.0.0 - Content
-
... ... @@ -1,72 +1,75 @@ 1 -{{container}}{{container layoutStyle="columns"}}((( 1 +{{html wiki="true"}} 2 +<div class="ez-academy"> 3 + <div class="ez-academy_body"> 2 2 3 - Thisdocument describes the difference between the 3.0versionof the eMagiz Mendix Connectorand the 4.X and onwardsversions of the eMagiz Mendix Connector. On top of that it describes the checks and balances one has to go through while migrating from the 3.0 version to a newer version.5 +<div class="doc"> 4 4 5 -== 1. Positioning == 6 6 7 -This packages has been created to support clients that are moving towards Mendix 8 in their environment. The latest version of eMagiz has been upgraded to use AMQP queues, which effectively means that direct connections from Mendix to onramp and offramp queues can be made. This has a positive effect as less effort is required in Mendix to interact with eMagiz and there is an easier management of the environment as only the infra flows need to be deployed (no exit and entry flows managed in Mendix). 8 8 9 - Totake benefit from this, eMagiz hasreleasedthis versionto takethefirststepsinthis direction. Below are some moredetailsand instructions to use this new version.Pleaseread these carefully.9 += Migration Path * eMagiz Mendix Connector 4.2.0 -> 5.0.0 = 10 10 11 -{{warning}}This version removes the web service layer from the eMagiz Mendix Connector. Mendix now connects to the eMagiz bus directly using Java Actions in microflows. The first upgrade to this new version may take more time for development and testing than previous updates of the eMagiz Mendix Connector. After that, however, it should be easier in use for both Mendix and eMagiz developers.{{/warning}} 11 +Below you will find a document describing the migration path to upgrade your eMagiz Mendix Connector from version 4.2.0 to 5.0.0. 12 +In case you want to implement an eMagiz Mendix Connector in a new Mendix project, ensure that you retrieve the latest version from the Mendix Marketplace as that will guarantee that the latest version is immediately chosen so you can implement it. 12 12 13 - Please findthepackageontheusual location:Under Deploy --> On-premise--> Runtimedownloads tab14 +Should you have any questions, please get in touch with academy@emagiz.com. 14 14 15 -== 2. Comparison == 16 +* Last update: March 1st, 2022 17 +* Required reading time: 4 minutes 16 16 17 -| Mendix V6/V7 Connector| Mendix V8 Connector| 18 -| ------ | ------ | 19 -| Messages received in XML | Messages received in XML, JSON or Data Model| 20 -| Web service required to receive messages. For sending messages, a Request Handler in the Mendix model is required | Direct connection to the eMagiz queue (onramp/offramp) made via Java Action| 21 -| Each flow (exit, entry and infra) needs to be deployed | Only infra flow needs to be deployed once, microflows connected to the queues directly| 22 -|Incoming webservice|Microflow - Java action details | 19 +== 1. Prerequisites == 23 23 24 -== 3. Migration Path == 21 +* Basic knowledge of the eMagiz platform 22 +* Understanding of eMagiz Mendix Connectors 23 +* A need to upgrade from 4.2.0 to 5.0.0 25 25 26 -1. Download the package and update the eMagiz Mendix Connector. If you are unsure how, please check out this [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Novice.Mendix Connectivity.novice-mendix-connectivity-update-emagiz-mendix-connector.WebHome||target="blank"]] 27 -2. Locate the name of the queue that interacts with Mendix web service currently in place 28 -2. Remove the Web service components in the Mendix model 29 -3. At the point where this web service component was called, replace it with the appropriate Java action from the Connector module. Use the queue name located in step 1 30 -4. Use the configuration items of the Java action as described in the approriate [[microlearnings>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.Mendix connectivity.WebHome||target="blank"]] 31 -6. Test if the messages are properly working 25 +== 2. Key concepts == 32 32 33 -**Key considerations** 34 -- Check if [%CurrentUser%] is not used in the microflow when processing incoming messages. Mendix loses this value when using a Java action microflow. An error message is generated and the message is not processed. 35 -- Understand the impact of the user that is updating/creating the domain model object. The web service user is no longer used to update/create the domain model object 36 -- A best practice can be to store the XSDs of the various integrations into the resources folder of the mendix project so that the entire team has access to the latest 37 -- During restart of the Mendix application, there is no consumer on the synchronous response queues. Once the first message is processed, the consumer will become active. eMagiz alerting will trigger on this scenario which can be considered a false positive. 27 +* The exit connector needs to be configured in eMagiz to make the connection work 28 +* The after startup microflow has been renamed 29 +* The configuration will be downloaded automatically 30 +* The flow overview (XML configuration overview) has returned 38 38 39 -== 4. Key takeaways == 40 40 41 -Please take care of the following items when you start to use this version of the Connector to ensure you can use it properly 42 -- Use supplied Java actions in the eMagiz Mendix connector to set up the connections 43 -- These 2 libraries could cause issues with the current version of the Connector - please evaluate the necessity of these before deleting them 44 - - xerces.xercesImpl.2.8.1.jar 45 - - xmlbeans-3.0.1.jar.ExcelImporter.jar 46 -- Make sure that you configure the exits in eMagiz correctly when using the latest version of the eMagiz Mendix Connector. 47 47 48 -== 5.AddendumeMagiz Mendix Connector 5.1.0 ==34 +== 3. Migration Path * eMagiz Mendix Connector 4.2.0 -> 5.0.0 == 49 49 50 -With the release of the newewst version of the eMagiz Mendix Connector a couple of things have changed. 36 +Below you will find a document describing the migration path to upgrade your eMagiz Mendix Connector from version 4.2.0 to 5.0.0. 37 +In case you want to implement an eMagiz Mendix Connector in a new Mendix project, ensure that you retrieve the latest version from the Mendix Marketplace as that will guarantee that the latest version is immediately chosen so you can implement it. 51 51 52 -- On project startup the connector-infra configuration is downloaded, installed, and started automatically. 53 - - When it is not possible to retrieve the active release, the previous connector-infra will be used. 54 - - The Configuration Overview snippet is back so you can download the release if needed. 55 -- Improved exception handling for synchronous entry integrations. 56 - - Standard eMagiz bus exceptions are recognized and converted into Mendix exceptions. 57 -- Improved way of working with synchronous exits and entries in combination with the import and export mapping (or the absence of them) 39 +Below we have written down the steps to migrate from the 4.2.0 to the 5.0.0 version of the eMagiz Mendix Connector. Follow these steps carefully to acquire the desired result. 58 58 59 - {{info}}Notethat this is a brief description of how to migrate from3.0.0to a higherversionof the eMagiz Mendix Connector. For a full migration path from 4.2.0 towards 5.X.0 please seethis[[migration path>>doc:Main.eMagizSupport.Migration Paths.migration-path-emagiz-mendix-connector-4.2.0-to-5.0.0.WebHome||target="blank"]]{{/info}}41 +=== 3.1 Retrieve latest eMagiz Mendix Connector === 60 60 61 - ===5.1Infra download,installation and starting===43 +The first step would be to download the latest version of the eMagiz Mendix Connector. You can do this via the marketplace of Mendix, or you can navigate within your eMagiz model to Deploy -> On-premises and open the tab Runtime Downloads to download the latest version that works for the Mendix version your project is running in. 62 62 63 -In older versions of the eMagiz Mendix Connector (3.0.0 and lower) you always needed to download the .emc package, manually upload it in Mendix and start the Infra flow by hand. 64 -With the introduction of this release we have made a change that automatically downloads, installs and starts the Infra flow belonging to this specific Mendix application. 45 +[[image:novice-mendix-connectivity-update-emagiz-mendix-connector--emc-download-screen.png]] 65 65 66 - [[image:Main.Images.Migrationpath.WebHome@emc8-after-startup-retrieve-infra.png]]47 +=== 3.2 Update the eMagiz Mendix Connector === 67 67 68 -This way you never have to execute those steps and eMagiz ensures that the Infra flow is the first to start up before any exits are registered. 69 -To make this possible we have added logic to the AfterStartup microflow of eMagiz to retrieve the properties from eMagiz, download the infra and start the infra. 49 +Please read the following [microlearning](../microlearning/novice-mendix-connectivity-update-emagiz-mendix-connector.md) as this microlearning details how you should update your eMagiz Mendix Connector. 70 70 71 -In case there is a problem with internet connectivity or you simply cannot reach eMagiz, the microflow ensures that the latest known infra will be started up. 72 -)))((({{toc/}}))){{/container}}{{/container}} 51 +=== 3.3 Specific configuration === 52 + 53 +The following points warrant additional actions on your part as they are needed to make the solution work within version 5.0.0 54 + 55 +* The after startup microflow within the module has been renamed. Ensure that you refer to the new and correct after startup microflow within your own after startup microflow or directly from the Project settings. Note that the after startup microflow is now called AfterStartup 56 +* The register microflow is not needed anymore in version 5.0.0. To make the solution work in 5.0.0, you need to change the exit flows in the portal to define the correct information. 57 + * For asynchronous exits you can check out this [microlearning](../microlearning/intermediate-mendix-connectivity-calling-an-asynchronous-webservice-in-mendix.md) on how to exactly configure the exit flow correctly 58 + * For synchronous exits you can check out this [microlearning](../microlearning/intermediate-mendix-connectivity-calling-a-synchronous-webservice-in-mendix.md) on how to exactly configure the exit flow correctly 59 +* The XML Configuration overview has returned (XmlConfiguration_Overview). So make sure that the relevant role(s) can view this overview in case a migration needs to be performed or a manual download is needed. 60 + 61 +===== Practice ===== 62 + 63 +== 4. Key takeaways == 64 + 65 +* The exit connector needs to be configured in eMagiz to make the connection work 66 +* The after startup microflow has been renamed 67 +* The configuration will be downloaded automatically 68 +* The flow overview (XML configuration overview) has returned 69 +* Migration from 4.2.0 to 5.0.0 requires changes on both sides 70 + 71 +</div> 72 +</div> 73 +</div> 74 + 75 +{{/html}}