Click here to Skip to main content
Click here to Skip to main content

A Quick look at the new functoids in BizTalk Server 2006

, 20 Mar 2006
Rate this:
Please Sign up or sign in to vote.
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:

  1. Assert

  2. Nil value

Logical toolbox section

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

  1. IsNil

  2. Logical NOT

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.

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":

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

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

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:

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:

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

Share

About the Author

Naveen Karamchetti
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 --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411022.1 | Last Updated 20 Mar 2006
Article Copyright 2006 by Naveen Karamchetti
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid