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.  if data is exist for field2 then only map field1

    Posted Tue June 26, 2012 10:09 AM

    Hi …

    i have one scenario like, if LIN03 is exist then only map LIN02.

    how to implemt this logic… pls help me.


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


  • 2.  RE: if data is exist for field2 then only map field1

    Posted Tue June 26, 2012 11:20 AM

    Hi jhima

    you can use Branch on a switch value.
    In the Properties panel for the BRANCH step, specify in the Switch property the name
    of the pipeline variable whose value will act as the switch.

    if you are checking if data is exist for LIN03

    if you want to check LIN03 is contains no characters
    …Brnch/LIN03
    …SEQUENCE (
    Leave the Label property blank (empty). At run time, the BRANCHstep executes the target step with no label if the switch variable is
    present, but contains no characters.)
    -------- do mapping

    if you want to check LIN03 is set to null or does not exist in pipline…
    …Brnch/LIN03
    …$null:SEQUENCE (
    $null label if the switch variable isexplicitly set to null or does not exist in the pipeline)
    ------- do mapping

    For more details please go with wM developer user guides…

    Regards
    Mukesh


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


  • 3.  RE: if data is exist for field2 then only map field1

    Posted Tue June 26, 2012 01:10 PM

    Hi,
    You can either use copy condition.

    Regards,
    Amol.


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


  • 4.  RE: if data is exist for field2 then only map field1

    Posted Tue June 26, 2012 08:32 PM

    Hmm. If by LIN you mean the item identification segment then I’m not sure why you’d map that way. Typically, you’d branch on the qualifier field and based on its specific value you’d map the data field to some target. For example:

    LIN**UP12398298234

    where LIN02 = UP and LIN03 =12398298234

    BRANCH on /my856/LIN02:
    …UP: MAP (map LIN03 for UPC value)

    Or perhaps I’ve misunderstood your specific case of LIN02 and LIN03.


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