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.  Document to DocumentList working ?

    Posted Thu December 17, 2015 05:25 AM

    hi,

    I try to make this conversion. I made it within a Java service and it works well.
    But, can you tell me how you would do that with a Service Flow (and/or with the help of the existing documentToDocumentList service) please ?

    Input :
    customer

    • id
    • name

    Output :
    customer[0]

    • id
    • name

    if Input is already a list, the task make nothing and leave the list as it.

    Regards


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


  • 2.  RE: Document to DocumentList working ?

    Posted Sat December 26, 2015 05:09 AM

    Hi,

    Really no idea on how to do that without a java service ?


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


  • 3.  RE: Document to DocumentList working ?

    Posted Sat December 26, 2015 12:41 PM

    Make a branch, check for customer[0]/id (this is a check whether you already have a list as input).

    If it’s not NULL, do nothing.

    If it’s NULL, do an explicit mapping from the customer object to a temp. doc list. Then drop the customer doc, then map the temp. doc list as the doc list “customer”.


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


  • 4.  RE: Document to DocumentList working ?

    Posted Sat December 26, 2015 03:37 PM

    Thanks, but i would hope doing that without a branch tests…
    In a more generic way, just with an existing function webMethods service…
    Because the Java service I’ve created is really simple, I would think such a service already exists… is it not the case?


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


  • 5.  RE: Document to DocumentList working ?

    Posted Sat December 26, 2015 03:47 PM

    I don’t think such a service exists. I assume, in your java service you also use some kind of “if”. Why is a branch a problem for you? Once you’ve implemented the service noone will know or will be interested in how it works. The important thing is that it “just works.”


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


  • 6.  RE: Document to DocumentList working ?

    Posted Sat December 26, 2015 03:49 PM

    Yes, you’re right :slight_smile:
    Thanks for your help


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


  • 7.  RE: Document to DocumentList working ?

    Posted Sun December 27, 2015 05:52 AM

    If you input is a list, did you try loop over and then pass through. As per the BIS, A document containing these three keys:

    Key Value
    cx_timeout 1000
    cx_max 2500
    cx_min 10

    Would be converted to a document list containing these three documents:

    pName cx_timeout
    pValue 1000

    pName cx_max
    pValue 2500

    pName cx_min
    pValue 10


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


  • 8.  RE: Document to DocumentList working ?

    Posted Thu January 21, 2016 06:46 AM

    Thanks M@he$h, I kept my java service and all work well.


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