简体   繁体   English

Biztalk拆分文件和使用

[英]Biztalk Splitting a file and the use of

In Biztalk 2006 I have a custom pipeline that split a file into many files, before each file get mapped. 在Biztalk 2006中,我有一个自定义管道,可以在映射每个文件之前将文件拆分为多个文件。 In the send pipeline I use "Use Temporary file for writing". 在发送管道中,我使用“使用临时文件进行写入”。 My question is: When splitting messages and use "Use Temporary file for writing", will every one of the splitted files be moved to the out folder from the temp folder at the same time or is each one of the splitted files moved to the out folder as soon as it's done, not waiting for the other files? 我的问题是:拆分邮件并使用“使用临时文件进行写入”时,拆分后的每个文件都将同时从temp文件夹移至out文件夹,还是拆分后的每个文件都移至out文件夹完成后,不等待其他文件? The files are very smal so I haven't found out. 这些文件非常小,所以我没有发现。 I just want to know the standard behaviour so I don't have to use much time to create big files and watch the result. 我只想了解标准行为,因此不必花费大量时间来创建大文件并查看结果。 Thanks for help :) 感谢帮助 :)

You can do this in BizTalk by taking advantage of several of it's features. 您可以通过利用BizTalk的几个功能来做到这一点。 The first feature is all about batching and debatching use envelope schemas. 第一个功能是关于使用信封模式进行批处理和分批处理。 These are techniques used to split an XML document into many smaller documents (ie. An XML doc that contains 500 purchase orders into 500 XML Docs each containing one purchase order). 这些技术用于将XML文档拆分为许多较小的文档(即,一个XML文档将500个采购订单分解为500个XML文档,每个XML文档都包含一个采购订单)。 And then likewise to assemble them again on the send. 然后同样在发送时再次组装它们。 Here is an article on how to achieve this: http://msdn.microsoft.com/ja-jp/library/aa578216.aspx 这是有关如何实现此目的的文章: http : //msdn.microsoft.com/ja-jp/library/aa578216.aspx

Depending on what exactly you are doing too, you can use an XPath expression to debatch the message in an orchestration and handle each individual message in the orchestration. 根据您也正在执行的操作,您可以使用XPath表达式对业务流程中的消息进行分批处理,并处理业务流程中的每条消息。 The orchestration can then reassemble the outgoing messages into a single instance. 然后,业务流程可以将传出的消息重新组合到一个实例中。

Tell us a littl emore about what you are trying to do. 告诉我们有关您要做什么的信息。

From your description I'm not 100% sure I fully understand your scenario 根据您的描述,我不确定100%是否完全了解您的情况

I assume you're splitting the file through a disassembler in the receive pipeline, and that your reference to "Use Temporary file for writing" refers to the file send adapter setting and that this send port subscribes to the messages from the receive port. 我假设您正在通过接收管道中的反汇编程序拆分文件,并且对“使用临时文件进行写入”的引用是指文件发送适配器设置,并且此发送端口订阅了来自接收端口的消息。

Given this scenario each output message (a fragment of the original incoming message) will be processed independently and will be delivered as soon as possible, certainly after the message box (on the send side) 在这种情况下,每条输出消息(原始传入消息的一部分)将被独立处理,并且将尽快发送,一定是在消息框之后(在发送方)

If you have a RecoverableInterchangeProcessing setting on your disassembler, and you have set it to True, the messages will be processed completely independently; 如果您在反汇编程序上具有RecoverableInterchangeProcessing设置,并且已将其设置为True,则将完全独立地处理消息;否则,请参见表5。 if this setting is false they will all be committed to the message box together, but then BizTalk may pick them up in any order. 如果此设置为false,它们将全部一起提交到消息框中,但是BizTalk可以按任何顺序将它们拾取。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM