Welcome to MSDN Blogs Sign in | Join | Help

Microsoft BizTalk Server

(Kerrey Zheng's view with BPI Products)
BizTalk Mapper: If...Then...Else

It's unbelievable there is no a "If..Then..Else" functoid in BizTAlk Mapper, however, you can combine some functoid to archive it if you dislike to write any code.

Below is the solution for "If source node exist, Then directly link with distination node, Else set a null to destination node" :
1, Drag  a Logical Existence functoid and Value Mapping functoid onto the map surface, then connect them.

2, Drag a Logical NOT functoid and another Value Mapping functoid onto the map surface, then connect them.

As shown as below.

 

Another important thing is for Flattern Value Mapping(Yellow circle), in this case, if the parent Node or record (N_Name_S41) doesn't exist in source message, you would use Flattern Value Mapping, if not, you will get blank message when you test map.

Posted: Wednesday, March 14, 2007 4:15 PM by Kerrey Zheng

Comments

Nick Heppleston said:

I had exactly the same problem when starting out with BizTalk - hoe do I do If-Then-Else!?!?

I went over the XSLT and never looked back.

Nick.

# March 14, 2007 5:00 PM

Kerrey Zheng said:

You can use something like this in a .net assembly and call it by scripting functoid.

Sample use:

Function Call: DateFormatConversion

Parm 1: DTM02+DTM03

Parm 2: yyyyMMddHHmm

Parm 3: yyyy-MM-ddTHH:mm:ss

....

Kerrey

# April 3, 2007 8:58 AM

Ales said:

Just use Script,It can make the same as your solution,and more than .

# October 8, 2007 11:37 PM

Sandeep said:

Hi,

I have a same requirment but sometimes i get input Xml data to be of repeating data ..suppose data of two employees ...<EmpDetails><id>1234<\id><\EmpDetails><EmpDetails><id>7656<\id><\EmpDetails>

..with above map logic how can i implement this senario..

Thanks

Sandeep

# September 29, 2009 2:06 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker