Which functoid should I use

Home Page Forums BizTalk 2004 – BizTalk 2010 Which functoid should I use

Viewing 1 reply thread
  • Author
    Posts
    • #17377

      What I'm trying to do is really simple and there is probably a functoid or a combinaison of them to use, but I didn't find so fare.

      My input schema has a field (let's call it Number) which can have the value 1,2 or 3. My output schema has 3 fields (result1,result2,result3).

      The logic is if Number equal 1, then result1=1,result2=0,result3=0. If Number equal 2, then result1=0,result2=1,result3=0. Etc.

      I have tried to use the script functoids but I didn't find the way to have multiple outputs with it. It seams that you can have multiple inputs on the script functoid but you can only have one output (the return statement). Did someone know what could be the most effective way to accomplish that without creating a custom functoid. Thanks.

    • #17390

      Aloha Anonymous,  

      Have the output of the scriptoid go to three sets of conditional value mappers.

      First new functoid – green[=];  params (scriptoid output, "1")

      Second new functoid – purple arrow [->];  params (logical "=" from above, scriptoid output)

          attach output of [->] to "result1" field

      Construct new identical groups of functoids for for result2 and result3, changing the [=] parameter to appropriately match "2" and "3".

      – the one called 'weak architect'

      PS – the value mapper functoid MUST have the logical as its first parameter or else it will fail. It is easy to reverse this order as you work with the functoids, so be mindful of this order.
       

       

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