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.

 View Only
Expand all | Collapse all

Question between invoking a service directly and calling it inside a map transformers

  • 1.  Question between invoking a service directly and calling it inside a map transformers

    Posted Tue July 05, 2016 08:13 AM

    Hello,

    I have a question please :
    Do you know the difference between :

    • Invoking a service directly into a flow
    • Invoking a service into a transformer of MAP component

    is it the same thing? or there is a difference in performance?

    Thanks & regards.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Question between invoking a service directly and calling it inside a map transformers

    Posted Tue July 05, 2016 09:31 AM

    Hi Yassine,

    when invoking a service as a transformer in a Map step the following is true:

    • It will only be executed when the output (at least one variable from it) is mapped to the out pipeline of the step
    • Only pipeline variables declared as input and output to the services are available inside the service (scoping).

    When invoking directly using Invoke step, scoping (if neccessary) needs to be defined manually and all variables present in the pipeline are available inside the service even if this might not be intended as the variables can be modified by the service and this will not be obvious to the calling service as they are not declared as input/output.

    About the performance:
    Invoking as transformer will be a little bit faster than invoking direclty, but this also depends on the complexity of the service being called.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 3.  RE: Question between invoking a service directly and calling it inside a map transformers

    Posted Tue July 05, 2016 11:08 AM

    I suggest, if the service which you want to use as a transformer contains calls to complex systems like Mainframes then go with normal flow call, if it is a normal flow service then you can opt even it as a transformer. Before using it as transformed please read more on it.

    Thanks,


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 4.  RE: Question between invoking a service directly and calling it inside a map transformers

    Posted Tue July 05, 2016 11:54 AM

    Thanks guys for you replies.
    Now it’s more clear for me.

    @MR as173d : the called services are always mainframe calls, so as you said, in this case i use the normal call


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Question between invoking a service directly and calling it inside a map transformers

    Posted Wed July 06, 2016 08:15 AM


  • 6.  RE: Question between invoking a service directly and calling it inside a map transformers

    Posted Mon July 11, 2016 05:50 PM

    Transformers, as the name implies, are meant to transform data. That’s why they exist within the context of a MAP step, which is meant to map data from one structure to another or to assign data. Unless you’re actually mapping and transforming data, do NOT use a transformer. Use a standard INVOKE. They are more self-documenting and they will make your services easier to read and understand.

    Percio


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods