Conditionally Create Attribute in Map

Home Page Forums BizTalk 2004 – BizTalk 2010 Conditionally Create Attribute in Map

Viewing 1 reply thread
  • Author
    Posts
    • #17793

      I have a map, where there is an attribte on the left side ("middleinitial") which may or may not be populated. I want to conditionally create the attrubute on the right, depending on whether or not the one on the left's length is > 0.

      The "middleinitial" attribute on the right has two siblings, "firstname" and "lastname" which are always populated (makes sense). I just want to create the thrird attribute, only if the one on the left exists.

       

      Any thoughts – seems straight forward.

       Any help would be greatly appreciated.

       

      Chris

    • #17795

      [quote user="Anonymous"]I have a map, where there is an attribte on the left side ("middleinitial") which may or may not be populated. I want to conditionally create the attrubute on the right, depending on whether or not the one on the left's length is > 0.

      The "middleinitial" attribute on the right has two siblings, "firstname" and "lastname" which are always populated (makes sense). I just want to create the thrird attribute, only if the one on the left exists.

      Any thoughts – seems straight forward.
      Any help would be greatly appreciated.

      Chris
      [/quote]

       Chris –

      1. link the middle initial to a maroon "length" functoid [###}] 

      2. link the output of length finctoid to a green [>] "greater than" functoid, and add the second parameter of "0"

      3. link [>] functoid to a purple [=>] value mapper functoid.

      4. link middile initial to the valume mapper as the second input parameter

      5. link the output of value mapper to the destination for middle initial.  

      This will cause the output attribute to only be created when the value mapper gets a true, meaning the length of the middle initial is greater than 0

      -wa

       

       

       

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.