IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Template based mapping

  • 1.  Template based mapping

    Posted 11/21/19 05:32 AM

    Hello,

    To put a little bit of context to my question:

    We are using a very large data model. For some services we have to map from the service input just some parts to the data model. Let’s say 30 fields from 100.

    These fields are obviously not flat, but in a document structure.

    Is there a way to define a template where you can specify what fields from the left-hand side are mapped to what fields to the right hand side.

    In this way if new mappings are needed, just the template needs to be updated.

    I think you agree with me that mapping fields in the Integration Server is not fun and error-prone.

    To you know some functionality or even some product (SAG or external) that supports this use case?

    Thank you.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Template based mapping

    Posted 11/21/19 05:44 PM

    Hi Vlad,

    I don’t think this mapping template kind is available in the Service Designer flow map editor and may be could try explore it via XSLT template or similar. Also It will be nice to have this feature enabled in on-prem edition etc…so it makes easier for bundle mappers (left to right elements ad-hoc) ,…What do say?

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Template based mapping

    Posted 11/24/19 05:33 PM

    Hi,

    This is one of my grievances with an graphical-mode-only programming language.

    There should always be a textual representation of the language to ease inspections and development needs such as yours.

    Best regards,


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Template based mapping

    Posted 11/25/19 01:52 PM

    Agreed!! :)- and similar to xml config editor with in the flow editor wizard.

    Cheers!
    RMG


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Template based mapping

    Posted 11/25/19 11:02 PM

    Hi,

    If this is a painpoint to everyone, the best bet is to raise an enhancement request in Brainstorm. Then SAG product team in particularly the product manager will reach out if you’ve garnered enough votes and support that this is a feature highly sought in the Designer.


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Template based mapping

    Posted 11/26/19 09:00 AM

    Related:

    Feature Request: 00666
    Feature Request: 04592
    Feature Request: 05772


    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Template based mapping

    Posted 11/26/19 01:52 PM

    A Big Thank you! :slight_smile:


    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: Template based mapping

    Posted 11/26/19 03:40 PM

    Could you elaborate on how you’d use the template? I mean, how changing the template would change the code based on it?

    And why can’t you achieve what you describe by using a service that performs the common mapping?


    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: Template based mapping

    Posted 11/27/19 05:43 AM

    Hi,

    The problem is not the code, is the size of the mapping (over 100 fields), which lends itself to many mistakes.

    A template (or text-based) mapping approach allows for code verification.

    Most mapping requirements are delivered as an excel sheet (on one side/column the source field and type; on the other the target field, type and transformation, if needed).

    Transforming this requirements document into a code template would be trivial whereas mapping in a Flow service is not (a Java service would not help either if the data structure is deeply nested).

    An example of a mapping tool is Belleken’s EA Mapping add-in for Enterprise Architect EA Mapping - Bellekens .

    Best regards,


    #Integration-Server-and-ESB
    #webMethods


  • 10.  RE: Template based mapping

    Posted 11/28/19 05:56 PM

    This is not trivial but quite doable. This will cost some effort but if the requirement comes often the effort will be worth it. We did things of a similar type in the past (we implemented the opposite direction, i.e. transformed a flow service into text pseudo code).

    You’ll have to have some SCA in place to detect typos in the excel sheet (and, consequently, in the generated mappings).

    Also, if your requirements are in the excel sheet why don’t you write a servie that would read the sheet and perform the mapping accordingly? I.e. sort of like of an interpreter. Why generate code if it is fully determined by the excel? Why not consume excel directly? Performance is usually not an issue in integration projects.


    #Integration-Server-and-ESB
    #webMethods