Changes for page Communication between models
Last modified by Erik Bakker on 2024/09/05 14:00
From version 15.1
edited by Erik Bakker
on 2022/07/28 10:48
on 2022/07/28 10:48
Change comment:
There is no comment for this version
To version 9.1
edited by Erik Bakker
on 2022/07/26 12:56
on 2022/07/26 12:56
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Communicationbetween models1 +Image Transformation - Content
-
... ... @@ -1,5 +1,5 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 - When yourintegrationlandscapegrowsthroughtime, youmightdecideto splitfunctionalbusinessprocessesintomultipleeMagizmodels.Inthosecases,the question ofconnectingthesemodelseasily,stable,and securelycould arise. Thismicrolearningwillfocusonhatquestionandprovideananswer basedon ourvisionand bestpractices whendealingwiththe platform.2 +In most cases, you will transform XML messages to other XML messages, or you will transform JSON or EDI messages in another of these formats. However, sometimes you want to perform an image transformation. With this image transformation, you can convert images in specific formats to another format (i.e., png). This can come in handy when you want to standardize the image format before using it further downstream in your business application(s). 3 3 4 4 Should you have any questions, please get in touch with [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 5 5 ... ... @@ -9,49 +9,54 @@ 9 9 10 10 == 2. Key concepts == 11 11 12 -This microlearning focuses on communicationbetween two eMagizmodels. When communicating to any external party (fromthe view ofacertain model) you should always considerthe following:12 +This microlearning focuses on performing image transformations in eMagiz. 13 13 14 -* Security 15 -* Loose coupling 16 -* Maintainability 17 -* Clarity 14 +By image transformation, we mean transforming the raw data that represents an image into another image format. 18 18 19 -== 3. Communication between models == 16 +* Read the help text of the component to understand which formats are supported 17 +* Ensure the input image is supplied in the correct format 18 +* Ensure you wrap the output image in something if you want to do additional transformations on the data further downstream 20 20 21 - Inalow-code platformlike eMagiz, you want to preventusing custom scriptingas much as possible. However, sometimes inpractice, you encountersituations that cannot be realized with the standard toolbox provided within the platform. Asaresult, we offer the optionto use a Groovy script in these situations to achieve the desired solution. In this microlearning, we will look at where you can use a Groovy script and discuss the key considerations when implementing a Groovy script within your model.20 +== 3. Image Transformation == 22 22 23 - Mostuserswouldthinkthat communicationviaqueuestoconnecttwoseparateeMagiz models isa smartidea. However, this issomethingthatwedonotencourage.We discouragethisforseveralpracticaland technicalreasons alike.22 +In most cases, you will transform XML messages to other XML messages, or you will transform JSON or EDI messages in another of these formats. However, sometimes you want to perform an image transformation. With this image transformation, you can convert images in specific formats to another format (i.e., png). This can come in handy when you want to standardize the image format before using it further downstream in your business application(s). 24 24 25 - When looking at the practical side ofthings getting it configuredcorrectlyis time-consuming andan error-prone action (as is evidentby the question). Furthermore,itcan leadto unexpected situationsinwhich youmake atypotolistento a queue on which no messages are provided. This queue will howeverberegistered on the JMS level (when you activatethe flow in questionwith the customconfiguration)which can lead toconfusing queue statistics andven moretroublesomefalse-positive alerting basedon missingqueue metrics or missing consumers.24 +Before we dive into the specifics of how to configure this, let us first consider the following: 26 26 27 -On top of that because you basically allow one model to write and read from queues registered in another model maintaining both models will become very confusing for the ones working on the project at the moment but also for those working on it at a later stage and does that need to provide (incidental) support on the environments. 26 +* Read the help text of the component to understand which formats are supported 27 +* Ensure the input image is supplied in the correct format 28 +* Ensure you wrap the output image in something if you want to do additional transformations on the data further downstream 28 28 29 - Anotherpracticalreason fornot wantingthisis that wedo notctivelysupport this use case fromMagiz.This means thatwhenwedoupdatestoourtechnical infrastructurewe will not takethis scenariointoaccount.Thiscouldleadoadditionalworkon yourpartin theutureandreducedstabilityof yoursolution.30 +{{warning}} This microlearning focuses on the image transformer component. Ensuring that the input is valid and the output fits the remainder of the process is highly dependent on the use case and will therefore not be discussed in this microlearning{{/warning}} 30 30 31 - From the technical pointofview,theconsequenceof thisconstructionisthat both modelsneed toknoweachothercertificatesandcredentialswhicharenotconsideredsecure. Ontopofthat becauseyou, theoretically,canxchange datafromanyqueuetoany queueyou could createasituation in whichupdates inonemodel triggerchanges intheothermodel(i.e.when usingthe same data model) that arenexpected (and frankly unwanted).32 +When turning to the Create phase of eMagiz, we need to open the flow and enter "Start Editing" mode to add the necessary component. For example, in the left panel, you can search for "Image." This will yield the following result. 32 32 33 -We advise using functionality that makes it explicit that both models function independently of each other. From eMagiz we consider two valid alternatives for this: 34 -- Using a web service as a layer of communication between the two models. This web service can be REST or SOAP and has been implemented before 35 -- Using the Event Streaming functionality of eMagiz to write and read from topics. 34 +[[image:Main.Images.Microlearning.WebHome@expert-create-your-transformations-image-transformation-image-transformation-component.png]] 36 36 37 - Both alternativeshave the benefitthat thesecurity canbetight and explicit(i.e.only model A can write/postdata to model B). Furthermoremanaging thesolutionbecomes a lot easier as it makesuse ofthestandardfunctionalitywithin theplatform. Wehaveno plansto support this approach inthe product.36 +After dragging the component onto the canvas, you must define the channels first. 38 38 38 +[[image:Main.Images.Microlearning.WebHome@expert-create-your-transformations-image-transformation-image-transformation-component-help.png]] 39 + 40 +Secondly, we must select the desired image format we want to transform. Finally, the field indicates all valid values you can choose. Please note that 'PNG' is the default selection. 41 + 42 +[[image:Main.Images.Microlearning.WebHome@expert-create-your-transformations-image-transformation-image-transformation-component-image-options.png]] 43 + 44 +Once you have done this, the component configuration is finished, and you can transform your input image to a desired output image format. 45 + 39 39 == 4. Assignment == 40 40 41 -C onsiderwhatyour criteriaare whencommunicatebetweenmodelsand compare themtoourcriteria.42 -This assignment can be completed with the help of the(Academy) project you created/used in the previous assignment.48 +Check whether the solution we discussed today can be found within your project. 49 +This assignment can be completed within the (Academy) project you created/used in the previous assignment. 43 43 44 44 == 5. Key takeaways == 45 45 46 -* Consider the following when communication between two models 47 -** Security 48 -** Loose coupling 49 -** Maintainability 50 -** Clarity 53 +* Read the help text of the component to understand which formats are supported 54 +* Ensure the input image is supplied in the correct format 55 +* Ensure you wrap the output image in something if you want to do additional transformations on the data further downstream 51 51 52 52 == 6. Suggested Additional Readings == 53 53 54 -If you are interested in this topic and want more information, please consult us at [[productmanagement@emagiz.com>>mailto:productmanagement@emagiz.com]]59 +If you are interested in this topic and want more information, please read the help text provided by eMagiz. 55 55 56 56 == 7. Silent demonstration video == 57 57