In BizTalk Server 2013, the behavior of Boolean parameters within scripting functoids in BizTalk Maps has changed.
For example, consider the following code within a scripting functoid:
In BizTalk Server 2013, the behavior is as follows:
In prior versions of BizTalk, the behavior was as follows:
For example, consider the following code within a scripting functoid:
public int AddIfTrue(int param1, int param2, bool addNum)
{
if (addNum) return param1+param2;
else return param1;
}
In BizTalk Server 2013, the behavior is as follows:
- If addNum is true, false, or any other value the output is param1+param2
- If addNum is empty the output is param1
In prior versions of BizTalk, the behavior was as follows:
- If addNum is false the output is param1
- If addNum is true, the output is param1+param2
- If addNum is empty or any other value the functoid fails with error "String was not recognized as a valid Boolean"