Custom C# functoid that takes a bool input ?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Tools > Custom C# functoid that takes a bool input ?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-26-04 09: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.







[ Post a follow-up to this message ]



    RE: Custom C# functoid that takes a bool input ?  
Tatyana Yakushev [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-01-04 10: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!tk2ms
ftngp13.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 th
e
>output of the logical functoid and link it to the input of a script functoi
d
>that converts the bool value to a string value then I can link the output o
f
>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 mess
age are best directed to the newsgroup/thread from which they originated.






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:19 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register