Click here to Skip to main content
15,881,938 members
Articles / Web Development / ASP.NET
Article

A Quick look at the new functoids in BizTalk Server 2006

Rate me:
Please Sign up or sign in to vote.
3.19/5 (9 votes)
20 Mar 20062 min read 51.1K   190   35  
This article describes the new functoids in BizTalk Server 2006.

Introduction

BizTalk Server 2006 has come out with several improvements with the map and schema editor. In the BizTalk Mapper, several new functoids have been added. This article will explain all the new functoids added to the BizTalk Mapper toolbox.

Advanced toolbox section

There are two new functoids added to the Advanced section of the toolbox:

Image 1

  1. Assert

    Image 2

  2. Nil value

    Image 3

Logical toolbox section

There are two new functoids added to the Logical section of the toolbox:

Image 4

  1. IsNil

    Image 5

  2. Logical NOT

    Image 6

Mapping example

This article shall explain all the new functoids, with the help of an example. It shall also describe the various scenarios where the functoids can be used.

Image 7

The input and output schemas used are self-explanatory.

Assert functoid: This functoid is always used in debugging maps. The assert functoid throws an exception and halts the build process of the map, if its "first" parameter is "false". In the example, we check if the location == "Hyderabad", it throws an exception if the location is not "Hyderabad":

Image 8

The build process halts in case an Assertion is raised. Have a look at the input XML file:

Image 9

This screen shot shows the build process being halted, notice the Assertion Error message appearing in the output window:

Image 10

Nil value functoid: This functoid is used to assign <EmployeeName xsi:nil="true" /> in the destination XML file. This functoid does not take any input values.

IsNil functoid: This functoid checks if the source file contains an element of the form <Date xsi:nil="true" />. This functoid returns a boolean (true or false) value. It returns true if the attribute xsi:nil="true" is present.

The input XML file:

Image 11

Logical NOT functoid: This functoid negates the boolean input value. If the input is true it returns false and vice-versa. This is very useful during the mapping of 'if-else' conditions. In this example, it is used to negate the value of the "=" functoid and send the appropriate value using the value-mapping functoid.

The output XML file:

Image 12

Summary

With the release of BizTalk Server 2006, Microsoft has filled all the gaps in the BizTalk Mapper and the schema editor. Hence this makes the user more productive and less prone to errors.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect AT&T Wi-Fi Services
United States United States
Naveen has done his Masters (M.S.) in Computer science, has started his career programming the mainframes and now has more than a decade of programming, development and design experience. Naveen has a sharp eye and keen observation skills. Naveen has worked for several companies and strived hard to build large scale business applications and bringing better solutions to the table.
Quite recently Naveen has built a fairly complex integration platform for a large bank. His hobbies include training, mentoring and research. Naveen spends his free time visiting National Parks nationwide.

Naveen has developed the BizTalk Control Center (BCC)
http://biztalkcontrolcenter.codeplex.com

Comments and Discussions

 
-- There are no messages in this forum --