BizTalk Tip : Can’t link custom functoid output to another functoid

When creating a new functoid and needing to connect the output of that functoid to the input of another functoid, take care in how you set the BaseFunctoid.Category field. Using various options including logical or unknown will result in a functoid that cannot link other functoid or can only link to specific types of functoids no matter what the OutputConnectionType is set to. The below code sets the BaseFunctoids.Category to field to FunctoidCategory.String allowing me to use my functoid output as input to scripting functoid, string functoids, etc etc etc.

 public class ContextFunctoid : BaseFunctoid
    {
        public ContextFunctoid() : base()
        {
            this.ID = 54007;
            this.SetupResourceAssembly("SysTalk.Integration.Functoids.ContextFunctoid.Resources", Assembly.GetExecutingAssembly());
            this.SetName("NAME");
            this.SetDescription("DESC");
            this.SetTooltip("TOOLTIP");
            this.HasVariableInputs = true;
            this.SetMinParams(2);
            this.SetMaxParams(3);
            this.SetExternalFunctionName(GetType().Assembly.FullName, "SysTalk.Integration.Functoids.ContextFunctoid", "GetProperty");
            this.Category = FunctoidCategory.String;
            this.OutputConnectionType = ConnectionType.All;
            this.AddInputConnectionType(ConnectionType.AllExceptRecord);
            this.AddInputConnectionType(ConnectionType.AllExceptRecord);
        }

For more information, http://msdn.microsoft.com/en-us/library/microsoft.biztalk.basefunctoids.functoidcategory.aspx

Advertisements
This entry was posted in BizTalk Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s