Custom Functoid Input Parameters – 1 to 100 Inputs

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Custom Functoid Input Parameters – 1 to 100 Inputs

Viewing 1 reply thread
  • Author
    Posts
    • #19948

      I’ve noticed that many of the built in functoids allow 1 to 100 inputs. I am creating a String Formatting functoid that I want to take 2 to X inputs where the first input is the format string and the remaining variable number of inputs are parameters for string.format function.

      The C# function header definition is straight forward:

      public string FormatString(string formatString, params object[] parameters)

      Do I have to write AddInputConnectionType(ConnectionType.All); 100 times?

       

    • #19950

      looking at techsavvygal’s example…

         //this functoid accepts exactly two parameters.
         this.SetMinParams(2);
         this.SetMaxParams(2);
         AddInputConnectionType(ConnectionType.AllExceptRecord);
        }

      It looks like she is covering both inputs with the single connection type statement.

      I think there is a natural inclination to define what type is allowed for each parameter position, but it looks more like a single blanket definition for the whole functoid – case in point the conditional mapping functoid. Here you have a string and a logical and, as you know, these can be out of order and the mapper will not warn you, it will just simply fail to map the field. So that suggests that there is no 1:1 enforcement of input types.

       

       

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