搜集的一些经典的Biztalk问答题
首先说明,某些答案也许是错的,呵呵
1. 如何理解Subscription&Publication
答案:所谓Subscription&Publication都是针对Biztalk Messagebox来讲的,一个消息通过receive port进入messagebox就是publication,而orchestration和send port则可以从messagebox中订阅某种类型的消息,好比给messagebox提前打个招呼说我对某种类型的消息感兴趣,一旦这种消息来了,引擎就会发送改消息给orchestration和Sendport.
2. Call orchestration和Start Orchestration有什么区别
答案:前者是同步调用,后者是异步调用。
3.如何理解Dehydration
答案:
Dehydration is simply serialization of the orchestration's state to a SQL Server database. Rehydration is the reverse process, restoring an orchestration to its last running state from the database. State is a broad term. For rehydration to work as a recovery mechanism, it has to capture every facet of a running orchestration. To understand hydration and dehydration, we have to understand what is dehydrated and when the orchestration engine performs dehydration and rehydration.
The what is simple but far reaching. There are three categories of information that are serialized during the dehydration of an orchestration:
-
Internal state of the orchestration engine This includes what orchestration is running and what checkpoint has been reached.
-
Component state .NET components involved in the orchestration are serialized during dehydration.
-
Messages and variables Message instances and orchestration variables are serialized so that the exact state of the data can be restored.
当一个orchestration idle一段时间后就会被dehydration,new incoming消息或者timeout之后就会rehydration。
4. 关联(Correlation)是什么?
答案:当系统需要匹配一个流程的实例(Instance)和新来的消息时,就需要用到关联。
具体来说,假如你有两个消息需要按顺序发送,这时你就需要用关联来确定消息是否在相同的实例中被按照正确的顺序接收到。
5. In which scenarios would use a "promoted property" vs "distinguished fields"?
The rule here is, if you dont want the schema element to appear in send port filters/debugging information then make it a distinguished field.
6. In Biztalk, what does a message type consist of?
A message type consists of the TargetNamespace#RootElement name.
7. Can an orchestration Start without an Activatable receive?
A Nested Orchestration can be started without an Activatable receive. Nested Orchestration = be called/strarted Orchestration
8. How does one enable Correlations in BizTalk?
First create a Correlation type and then create an instance of it.
9. List out the three important things to consider while designing a BizTalk orchestration!
The Incoming data format, The Business process and The Outgoing data format.
10. 非序列化的.Net dll是否可以在orchestration中使用?
答案:可以在atomic中使用。