What OutputConnectionType should I use for custom functoid returning bool?

Home Page Forums BizTalk 2004 – BizTalk 2010 What OutputConnectionType should I use for custom functoid returning bool?

Viewing 1 reply thread
  • Author
    Posts
    • #17138

      I'm writing a custom functoid that returns a bool, although I can return strings "true" or "false", or int 0 or 1 if necessary to accomplish my goal.

      Can anyone tell me which OutputConnectionType I need to set to allow this to connect to the first input of the Value Mapping functoid?

      I have tried ConnectionType.FunctoidLogical and ConnectionType.AllExceptRecord, now headed for ConnectionType.All.  Again, there are a few more permutations to test but I was hoping to short circuit the wheel spinning if someone has a suggestion or answer.

      BizTron.

    • #17142

      I believe the functoids always output strings, regardless of the perceived type. If you return "true" and "false" it will be the solution you were looking for.

      You can quickly prove this by evaluating the strings in the map and you'll see that a logical receiving the word "true" treats it as the appropriate boolean input.

      – weak architect

      • #17156

        I just tested string concat with "true" and & (anded) them together, then value mapped a string based on the result.  "true" & "true" = true.

        Also, I used an equal (=) with a concat of "true" = "true" and anded that result from the "=" and the other "true".   true & "true" = true.

        Then I changed one of the concats to "false"…   true & "false" = false   ..and..    false & "true" = false.

        Now I need to modify the custom functoid and test it in the AM.

        Thanks for the help.

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