BizTalk Server Tools - Custom C# functoid that takes a bool input ?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Tools > July 2004 > Custom C# functoid that takes a bool input ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Custom C# functoid that takes a bool input ?
Steve Yetter

2004-03-26, 4:48 pm

I have built a functoid that performs the same function a the "C" statement
(test)?(test true action)test false action ). This functiod works fine
except when I try to link the output of a login functoid to the parameter
that takes the test input it will NOT allow the link to occur. If I take the
output of the logical functoid and link it to the input of a script functoid
that converts the bool value to a string value then I can link the output of
the script functoid to the input of my custom functoids test parameter.

My question is which one of these constants should be used for the
definition of the test parameter type in order for it to accept a bool
value? I have tried the obvious CONNECT_TYPE_ALL and
CONNECT_TYPE_FUNC_BOOLEAN but they still exhibit the above described
behavior.

CONNECT_TYPE_ALL_EXCEPT_RECORD -3
CONNECT_TYPE_ALL -
1
CONNECT_TYPE_NONE 0
CONNECT_TYPE_FIELD 1
CONNECT_TYPE_RECORD 2
CONNECT_TYPE_RECORD_CONTENT 4
CONNECT_TYPE_FUNC_STRING 8
CONNECT_TYPE_FUNC_MATH 16
CONNECT_TYPE_FUNC_DATACONV 32
CONNECT_TYPE_FUNC_DATETIME_FMT 64
CONNECT_TYPE_FUNC_SCIENTIFIC 128
CONNECT_TYPE_FUNC_BOOLEAN 256
CONNECT_TYPE_FUNC_SCRIPTER 512
CONNECT_TYPE_FUNC_COUNT 1024
CONNECT_TYPE_FUNC_INDEX 2048
CONNECT_TYPE_FUNC_CUMULATIVE 4096
CONNECT_TYPE_FUNC_VALUE_MAPPING 8192
CONNECT_TYPE_FUNC_LOOPING 16384
CONNECT_TYPE_FUNC_ITERATION 32768
CONNECT_TYPE_FUNC_DBLOOKUP 65536
CONNECT_TYPE_FUNC_DBEXTRACT 131072



--
The opinions stated above do not necessarily reflect those of St. Joseph's
Hospital,
The aforementioned institution takes no responsibility for the contents of
this message.


Tatyana Yakushev [MSFT]

2004-07-01, 5:52 pm

You have to use scripting functoid to convert bool to string.

Thanks,
Tatyana

--------------------
>From: "Steve Yetter" <yetters@hotmail.com>
>Subject: Custom C# functoid that takes a bool input ?
>Date: Fri, 26 Mar 2004 15:38:39 -0600
>Lines: 46
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
>X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
>Message-ID: <uf2sDq3EEHA.712@tk2msftngp13.phx.gbl>
>Newsgroups: microsoft.public.biztalk.tools
>NNTP-Posting-Host: c66.190.0.34.spt.wi.charter.com 66.190.0.34
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.biztalk.tools:3505
>X-Tomcat-NG: microsoft.public.biztalk.tools
>
>I have built a functoid that performs the same function a the "C" statement
>(test)?(test true action)test false action ). This functiod works fine
>except when I try to link the output of a login functoid to the parameter
>that takes the test input it will NOT allow the link to occur. If I take the
>output of the logical functoid and link it to the input of a script functoid
>that converts the bool value to a string value then I can link the output of
>the script functoid to the input of my custom functoids test parameter.
>
>My question is which one of these constants should be used for the
>definition of the test parameter type in order for it to accept a bool
>value? I have tried the obvious CONNECT_TYPE_ALL and
>CONNECT_TYPE_FUNC_BOOLEAN but they still exhibit the above described
>behavior.
>
>CONNECT_TYPE_ALL_EXCEPT_RECORD -3
>CONNECT_TYPE_ALL -
>1
>CONNECT_TYPE_NONE 0
>CONNECT_TYPE_FIELD 1
>CONNECT_TYPE_RECORD 2
>CONNECT_TYPE_RECORD_CONTENT 4
>CONNECT_TYPE_FUNC_STRING 8
>CONNECT_TYPE_FUNC_MATH 16
>CONNECT_TYPE_FUNC_DATACONV 32
>CONNECT_TYPE_FUNC_DATETIME_FMT 64
>CONNECT_TYPE_FUNC_SCIENTIFIC 128
>CONNECT_TYPE_FUNC_BOOLEAN 256
>CONNECT_TYPE_FUNC_SCRIPTER 512
>CONNECT_TYPE_FUNC_COUNT 1024
>CONNECT_TYPE_FUNC_INDEX 2048
>CONNECT_TYPE_FUNC_CUMULATIVE 4096
>CONNECT_TYPE_FUNC_VALUE_MAPPING 8192
>CONNECT_TYPE_FUNC_LOOPING 16384
>CONNECT_TYPE_FUNC_ITERATION 32768
>CONNECT_TYPE_FUNC_DBLOOKUP 65536
>CONNECT_TYPE_FUNC_DBEXTRACT 131072
>
>
>
>--
>The opinions stated above do not necessarily reflect those of St. Joseph's
>Hospital,
>The aforementioned institution takes no responsibility for the contents of
>this message.
>
>
>



--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com