Using Claim Check with a logical attachment.
对逻辑附件使用Claim check。
Figure 1 explains conceptually how Claim Check works.
图1从概念上解释了Claim Check的运作方式。
First, we use the term "attachment" to refer to the data that you want to claim check.
首先,我们使用术语“附件”表示希望凭证索取的数据。
The checkIn method allows clients to check the attachment by invoking the Claim check service.
checkIn方法通过调用Claim check服务允许客户端检查附件。
Many times, customers will ask why they need to use the Claim Check pattern and when to use it.
客户很多时候会问,他们为何需要使用Claim Check模式且何时使用它。
This article described the Claim Check pattern, including logical and physical SOAP attachments.
本文描述了Claim Check模式,包括逻辑和物理soap附件。
The claim check service USES a Flat file adapter to write and read attachments from the file system.
凭证索取服务使用一个平面文件适配器来从文件系统中读写附件。
Therefore, we have chosen to invoke the Claim Check service directly from the mediations in Figure 3.
因此,我们选择直接从图3中的中介调用Claim Check服务。
Storetype: This element identifies the type of storage that should be used by the Claim Check service.
storetype:该元素确定Claim Check服务应使用的存储类型。
The Claim Check pattern basically applies this real-life common sense and efficient practice to the IT world.
Claim Check模式基本上适用于这个生活常识和IT有效实践。
When you apply the Claim Check pattern, irrespective of the underlying platform, there are three aspects to consider.
在应用Claim Check模式时,不管底层平台是什么,都需要考虑以下三方面?
Therefore, invoking the Claim Check service in the export and import through the custom data handler is a good design.
因此,通过自定义数据处理程序在输出和输入中调用Claim Check服务是一个很好的设计。
The caller needs to store the token so that it can be used later to retrieve the attachment from the Claim Check service.
调用方需要存储令牌,这样一来,稍后就可以使用它从Claim Check服务中检索附件。
In this section, we use the sample application to illustrate how to apply the Claim Check pattern to handle a SOAP attachment.
在本节中,我们使用样例应用程序来展示如何应用Claim Check模式来处理SOAP附件。
In this article, we use a sample scenario to illustrate how to claim check both a logical attachment and a physical attachment.
本文使用了一个样例场景来展示凭证如何索取逻辑附件和物理附件。
So, while you are applying the claim check pattern, why not also consider minimizing the navigation required by your application?
因此,在应用凭证索取模式时,为何不一并考虑最大限度地降低应用程序所需的导航?
For more information about the Claim Check pattern, see the Enterprise Integration Patterns book listed in the Resources section.
欲了解关于Claim Check模式的更多信息,请参阅参考资料部分中列出的集成模式图书。
The approach of detaching data from a process has been discussed several times (for example, in the Claim Check pattern article).
有一些文章讨论了分隔流程与数据的方法(例如Claim Checkpattern)。
When a caller needs to check in an attachment, it invokes the Claim check service, passing in a data object of type ClaimCheckObject.
当一个调用方需要签入一个附件时,它调用Claim Check服务,传入一个ClaimCheckObject类型的数据对象。
Fortunately, application designers have learned and documented a good technique to handle this problem by using the Claim Check pattern.
幸运的是,应用程序设计人员学习并记录了一种好方法,可以使用Claim Check模式处理这个问题。
This concludes the detailed description of the sample implementation of the Claim Check pattern solution for handling a logical attachment.
上面内容详细描述了处理逻辑附件所用的Claim Check模式解决方案的样例实现。
At the point where the solution needs the whole large payload again, check out the large payload from the data store using the 'claim check' key.
当解决方案再次需要大型负载时,使用'claim check '键检查数据存储中的大型负载。
The data handler detaches the logical attachment from the Order data object and calls the Claim check service to check in the logical attachment.
数据处理程序将逻辑附件从Order数据对象中分离出来,并调用Claim Check服务来签入逻辑附件。
We made a few simplifications to the sample application to focus on the main topic of the article, Claim Check pattern design and implementation.
我们对样例应用程序进行了一些简化,重点介绍本文的主题:Claim Check模式设计和实现。
The flows include transformations of business objects used by the flat file interface FlatFileImport1 and the claim check service interface ClaimCheckIntf.
请求流包括平面文件接口flatfileimport1和凭证索取服务接口ClaimCheckIntf使用的业务对象的转换。
The sample Claim Check service provides an operation that allows the clients to remove an attachment from the data store once the attachment is claimed.
Claim Check服务样例提供了一个操作,支持了客户端在索取附件之后将其从数据存储中删除。
Finally, when the caller needs to check out the attachment, it invokes the Claim check service with the token and the attachment is returned to the caller.
最后,当调用方需要签出附件时,它使用令牌调用Claim Check服务,附件返回调用方。
When the logical attachment is returned by the Claim Check service, the data handler attaches the logical attachment to the ShipmentRequisition data object.
当Claim Check服务返回逻辑附件时,数据处理程序将逻辑附件附加在ShipmentRequisition 数据对象上。
When the Claim Check service returns a token, the token is stored into the Order data object, into the same field that was used to store the logical attachment.
当Claim Check服务返回一个令牌时,令牌存储在Order数据对象中,存储在过去用于存储逻辑附件的同一字段中。
When the Claim Check service returns a token, the token is stored into the Order data object, into the same field that was used to store the logical attachment.
当Claim Check服务返回一个令牌时,令牌存储在Order数据对象中,存储在过去用于存储逻辑附件的同一字段中。
应用推荐