|
Home > Archive > BizTalk Server General > January 2005 > scripting functoid with optional inputs
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 |
scripting functoid with optional inputs
|
|
|
| Is there any way to create an inline c# functoid that has optional inputs. I
find that the functoid does not even get called if one of the inputs is not
in the input data, but I need to create output regardless. Since C# does not
support default parameters, what other options do I have?
Thanks,
Eric
| |
| Jon Flanders[DevelopMentor] 2005-01-26, 5:54 pm |
| You may need to create a Custom Functoid - it has a HasVariableInputs
property that can be set. The Scripting functoid itself sets this to true
IIRC.
--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Eric" <ericstott.dnsme@hotmail.com> wrote in message
news:%23uhH5T9AFHA.1392@tk2msftngp13.phx.gbl...
> Is there any way to create an inline c# functoid that has optional inputs.
I
> find that the functoid does not even get called if one of the inputs is
not
> in the input data, but I need to create output regardless. Since C# does
not
> support default parameters, what other options do I have?
>
> Thanks,
> Eric
>
>
| |
| Jon Flanders[DevelopMentor] 2005-01-26, 5:54 pm |
| You may need to create a Custom Functoid - it has a HasVariableInputs
property that can be set. The Scripting functoid itself sets this to true
IIRC.
--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Eric" <ericstott.dnsme@hotmail.com> wrote in message
news:%23uhH5T9AFHA.1392@tk2msftngp13.phx.gbl...
> Is there any way to create an inline c# functoid that has optional inputs.
I
> find that the functoid does not even get called if one of the inputs is
not
> in the input data, but I need to create output regardless. Since C# does
not
> support default parameters, what other options do I have?
>
> Thanks,
> Eric
>
>
| |
| Jon Flanders[DevelopMentor] 2005-01-26, 5:54 pm |
| You may need to create a Custom Functoid - it has a HasVariableInputs
property that can be set. The Scripting functoid itself sets this to true
IIRC.
--
Jon Flanders [DevelopMentor]
http://staff.develop.com/jfland/
http://www.develop.com/courses/biztalk
"Eric" <ericstott.dnsme@hotmail.com> wrote in message
news:%23uhH5T9AFHA.1392@tk2msftngp13.phx.gbl...
> Is there any way to create an inline c# functoid that has optional inputs.
I
> find that the functoid does not even get called if one of the inputs is
not
> in the input data, but I need to create output regardless. Since C# does
not
> support default parameters, what other options do I have?
>
> Thanks,
> Eric
>
>
| |
| Stephen W. Thomas 2005-01-26, 5:54 pm |
| Hello.
Another option might be to put your functoid logic inside an external
assembly that is called from the scripting functoid. I think that supports
overloaded functions. You would then be able to define your base and then
any optional parameters as overloads.
Stephen W. Thomas
http://www.geekswithblogs.net/sthomas
"Eric" wrote:
> Is there any way to create an inline c# functoid that has optional inputs. I
> find that the functoid does not even get called if one of the inputs is not
> in the input data, but I need to create output regardless. Since C# does not
> support default parameters, what other options do I have?
>
> Thanks,
> Eric
>
>
>
|
|
|
|
|