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
Expand all | Collapse all

Assign Pipeline value to label in Sequence step

  • 1.  Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 01:52 PM

    Hi,

    I am trying to create a generic Header\Trailer check flow but cannot assign the labels of the sequence step to a value from the pipeline?

    Any ideas?

    Thanks
    Rudster


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


  • 2.  RE: Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 02:13 PM

    Hi Rudster,

    Try using %varaibleName%, for substituting the value of the pipeline variable.

    Kalyan


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


  • 3.  RE: Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 02:23 PM

    I’ve tried that first but unfortunately that does not work if you put it in the label field of the sequence step, can’t understand why not but it doesn’t.

    Thanks


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


  • 4.  RE: Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 02:41 PM

    Can you make the requirement clear as there wont be any need for runtime variables in Labels.

    Kalyan


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


  • 5.  RE: Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 02:48 PM

    What I was asked to do is develop generic ftp flows that the rest of the developers can use in their integrations. For the header\trailer check flow I need to give the flow input variables of header, trailer, header pattern, trailer pattern. I’ve got two sequence fields below the branch where I check the header but need to set the label field of the sequence step equal to the header pattern field in the pipeline. It works fine if I hardcode the label field but unfortunately not all header fields will be the same. I can ask them to change this value but then everyone will have to create his own flow because it will not be generic. Hope this clear things up a bit.

    Thanks


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


  • 6.  RE: Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 03:06 PM

    Seems like you need to use a branch where you set the evaluate labels to true.

    So you have the following:

    Sequence
    — branch (check header values)
    %headerValue%==‘1’
    %headerValue%==‘2’
    %headerValue%==‘3’
    $default

    In the label field of each flow or map where you can “evaluate” the data in the pipeline, you copy and paste the pipeline item. If you are in a record with many levels of child nodes, the pasted value will be really long. Then, you can create a formula. In the above example I am specifying that the value is either 1, 2 or 3.

    You can also check ranges or exclusions like:

    %headerValue%<>0
    %headerValue%<>null
    %headerValue%==null

    and you can perform multiples like:

    %headerValue%==null || %headerValue%==‘’

    The last one is empty string.

    This is quite a bit of this in the developer manual, but it helps to see this in someone else’s code. There is a fair bit of really good shareware/freeware code here on wmusers that you can download and see exactly how this can work for you.

    Hope it helps.

    Ray


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


  • 7.  RE: Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 03:49 PM

    The last post stripped my operators, so here’s the one section that is missing details:

    You can also check ranges or exclusions like:

    %headerValue%<>0
    %headerValue%<>null
    %headerValue%==null


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


  • 8.  RE: Assign Pipeline value to label in Sequence step

    Posted Fri October 17, 2003 03:54 PM

    I’ll try this,

    thanks Ray.

    Enjoy your weekend!

    Cheers
    Rudi


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


  • 9.  RE: Assign Pipeline value to label in Sequence step

    Posted Mon October 20, 2003 02:16 PM

    Hi Rudi,

    Give an input to your service and then check for the following conditions.
    %headerValue%==%inputValue% or
    %headerValue%!=%inputValue% etc.,
    so that who ever is using your service needs to supply the input , and your service will be alotogether generic.

    Kalyan


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