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
  • 1.  Initial IData object from child service

    Posted Fri April 28, 2023 08:48 AM

    Hi All,

    I am looking to write a generic java service which can provide the initial IData object of a parent/top level service at the start of invoke. similar to how the audit mws logging works when the pipeline is set to include. has anyone got any experience of this.

    Many thanks,
    Kareem.


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


  • 2.  RE: Initial IData object from child service

    Posted Fri April 28, 2023 09:08 AM

    Hi Kareem,
    do you mean something like this?:

    IData currentPipeline = IDataUtil.deepClone(pipeline);
    IDataUtil.put( pipelineCursor, “currentPipeline”, currentPipeline );

    Kind regards,
    Simon


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


  • 3.  RE: Initial IData object from child service

    Posted Fri April 28, 2023 11:05 AM

    Hi Simon,

    Thanks for your reply! it’s not exactly this. The service I’m looking to build will return the initial unmodified inputs of a top level service. I should be able to call it from a child and get that original payload. the main purpose of this service will be for debugging and inspecting failures.

    For example:
    Service: Parent
    Input:
    varA = 1
    varB = 2

    Tree:
    Mapper varA = X
    Invoke child

    Service Child
    Invoke

    Many thanks,
    Kareem.


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


  • 4.  RE: Initial IData object from child service

    Posted Fri April 28, 2023 11:09 AM

    ah looks like the tags i used for the child invoke got sanitised it should be:

    Invoke <java service to return original unmodified input: varA = 1, varB = 2>


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


  • 5.  RE: Initial IData object from child service

    Posted Fri April 28, 2023 11:38 AM

    Hi Kareem,

    I don´t think that this will be possible.
    Once varA has been set to X, there is no way for the flow service to know that it has been originally set to 1.

    One thing which might be helpful here, will be to use the savePipeline service, but this needs to be elabroated further as we didn´t have such a requirement in the past.

    Regards,
    Holger


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


  • 6.  RE: Initial IData object from child service

    Posted Fri April 28, 2023 12:03 PM

    Thanks Holger,

    That makes sense. I was curious if it was possible via the Java API as it is recorded in MWS when the service auditing is enabled.

    It’s probably better practice to use that method in any case.

    Many thanks,
    Kareem.


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


  • 7.  RE: Initial IData object from child service

    Posted Fri April 28, 2023 12:24 PM

    Hi Kareem,

    service auditing is recording the input pipeline with which the service was invoked.
    Later modifications during the processing of the service will not be recorded.

    When using service auditing remember to configure the archive database schema and use pub.monitor.archive:* services from WmMoninitor package to remove older entries.

    See Monitor Users Guide for further informations.

    Regards,
    Holger


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