webMethods

webMethods

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

debugLog using transformer

  • 1.  debugLog using transformer

    Posted Thu March 11, 2010 11:10 AM

    Hi,

    Can any one let me know why “debugLog” builtIn service is working with direct invoke step but not with transformer?

    Regards,

    KCS


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


  • 2.  RE: debugLog using transformer

    Posted Thu March 11, 2010 12:34 PM

    Hi Soma,
    Transfers being used for transforming some value. Now in ‘debugLog’ service you are not transforming any thing and more over if you will check the service you will find no output variable. So how you can use this service as transformer? What you will map to the output variable which is not available. That is why this service can not be used as transformer.


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


  • 3.  RE: debugLog using transformer

    Posted Thu March 11, 2010 02:57 PM

    Hi Vikas,

    Thanks for your reply.Yes You are right.

    We can not use service as a transformer which does not having output data or which does not map output data to pipeline variables
    Thanks

    Regards,
    kcs


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


  • 4.  RE: debugLog using transformer

    Posted Thu March 11, 2010 05:02 PM

    Here is a way to force it to execute:

    Expand the transformer.
    Under the Service Out, add a string variable. The name can be anything.
    Map that variable to a variable in the pipeline.

    The transformer will now be executed.


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


  • 5.  RE: debugLog using transformer

    Posted Fri March 12, 2010 07:57 AM

    HI Rob,
    But still ‘debugLog’ will not work as transformer. Even i tried as well. But reason was not clear to me. If you can tell.


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


  • 6.  RE: debugLog using transformer

    Posted Fri March 12, 2010 12:16 PM

    Hi Rob,

    Do you mean that instead of using the ‘dubugLog’ as a transformer we need to create a wrapper service for ‘debugLog’ and we should provide some output variable to the wrapper service.
    Call this wrapper service as a transformer and the output variable of the transformer should be mapped to any pipeline variable
    I have tested like this it is working.


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


  • 7.  RE: debugLog using transformer

    Posted Fri March 12, 2010 05:51 PM

    I did not mean create a wrapper service.

    Here is a screen shot the shows the results of the steps I posted earlier.
    debugLog.jpg


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


  • 8.  RE: debugLog using transformer

    Posted Mon March 15, 2010 03:54 PM

    In the similar way i tried but it is not working.


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


  • 9.  RE: debugLog using transformer

    Posted Tue March 16, 2010 05:49 AM

    Thanks Rob. I just tried this your way and it did coerce a debugLog transformer to execute.

    However, the developer user guide states a transformer won’t run if it has no ‘declared’ output:

    If you do not link any output variables or the transformer does not have any declared
    output variables, the transformer service will not run.

    Just to be safe, it may be better to use a wrapper service.


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


  • 10.  RE: debugLog using transformer

    Posted Tue March 16, 2010 08:40 AM

    Thanks for the document reference Sonam. I figured it was mentioned somewhere but I didn’t dig for it deep enough I guess. That’s the answer for the original question!


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