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.  Expose custom Java service fields in pipeline

    Posted Tue February 04, 2020 03:51 AM

    I wrote a custom Java service to list dirs since listFiles could only list files. It’s working and getting a list of dirs but is there any way to make the fields exposed or displayed in the pipeline tree like listFiles?


    webmethods_list_dirs.PNG


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


  • 2.  RE: Expose custom Java service fields in pipeline

    Posted Tue February 04, 2020 10:45 AM

    Jesper, have you tried to set the Java service’s “input/ouput” tab (refer to the screenshot)?


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


  • 3.  RE: Expose custom Java service fields in pipeline

    Posted Tue February 04, 2020 03:40 PM

    Hi Jesper,

    Have you considered creating output signature in your Java Service utility??

    This way the required fileList (document reference or list) and handle in the code such a way this IDATA array object (can be available in the pipeline output downstream!!

    Give it a try and let us know.

    HTH,
    RMG


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


  • 4.  RE: Expose custom Java service fields in pipeline

    Posted Wed February 05, 2020 02:38 AM

    Well that was simple.

    I guess the output must match the name and datatype which is inserted into pipeline in the java. I tried to assign string list as output first but didn’t notice the dirlist comes out as an object list.

    Anyway I can convert it easily using pub.string:objectToString.

    Thanks.


    webmethods_list_dirs_pipeline.PNG
    webmethods_list_dirs.PNG


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


  • 5.  RE: Expose custom Java service fields in pipeline

    Posted Wed February 05, 2020 12:40 PM