Step 3: Add a Partner Link for the compensation service.
步骤3:添加补偿服务的伙伴链接。
Step 1: Create an interface for the compensation service.
步骤1:创建补偿服务的接口。
A compensation service is similar to a forwarding service.
补偿服务与转发服务类似。
Select Retry to invoke the failed compensation service again.
选择Retry来再次调用一个失败的补偿服务。
To add a compensation service to an activity, follow these steps
要向活动添加补偿服务,请遵循以下步骤
You need a Partner Link to add the compensation service into the process.
您需要伙伴链接以便将补偿服务添加到流程中。
You can specify an input message for the compensation service explicitly.
您可以明确定义补偿服务的输入消息。
The compensation service is invoked only if the forward service has been completed.
补偿服务仅当转发服务完成时才调用。
In workflow, each service activity might have a compensation service associated with it.
在工作流中,每个服务活动可能都有一个与之相关联的补偿服务。
If it doesn't exist, you need to create a service interface for your compensation service.
如果它不存在,则需要为补偿服务创建服务接口。
So, set the input message of the compensation service to the input message of the forward service.
所以,将补偿服务的输入消息设置为转发服务的输入消息。
Once an activity completes successfully, its compensation service becomes available to be executed.
一旦活动成功地完成,它的补偿服务就可以执行。
The input message of the compensation service provides the information the service needs to send the E-mail.
补偿服务的输入消息提供服务发送电子邮件所需的信息。
Figure 5 shows the compensation service defined in the compensation property pane of the BookHotel activity.
图5显示了BookHotel活动的补偿属性面板中定义的补偿服务。
This article described the compensation service in Process Choreographer and its usage in the OTMPS scenario.
本文描述了流程编排器中的补偿服务以及它在OTMPS 场景中的使用。
You can define an input message for the compensation service in the same way that you would for a forward service.
您可以使用与用于转发服务相同的方法来定义补偿服务的输入消息。
The compensation service is pretty similar to other services, in that it is a Web service and needs an input message.
补偿服务和其它服务一样,它是个Web服务,需要一个输入消息。
In our OTMPS scenario, you need to create a service interface for the compensation service of Manufacture Plant 1 service.
在我们的OTMPS场景中,您需要为ManufacturePlant1服务的补偿服务创建服务接口。
The compensation service needs to be an operation which reverses the changes done by the forward service of the Invoke activity.
补偿服务需要一个操作来还原调用活动的forward 服务所做的改变。
This compensation service sends an E-mail to the manufacturing plant administrator to inform him or her to void the previous order.
这个补偿服务向制造厂的管理者发送电子邮件,通知他或她取消先前的订单。
The optional compensation service is executed to compensate the actions of the forward service when a fault happens in the process.
当流程中发生故障时,执行可选的补偿服务来补偿转发服务的行为。
If a failure occurs during invocation of a compensation service, compensation processing for this process is stopped and needs human interaction to be restarted.
如果在补偿服务的调用过程中发生失败,流程的补偿进程将被停止,并需要人工交互来重新启动。
A macro-flow's compensation service can be triggered either explicitly or implicitly, while a micro-flow's compensation service can only be triggered implicitly.
宏流(macro - flow)的补偿服务可以显式地或者隐式地触发,而微流的补偿服务只能隐式地触发。
The input message to the compensation service is a snapshot of given variable data at the point in time that the corresponding forward service completed successfully.
补偿服务的输入消息是特定变量数据在相应的forward服务成功完成时刻的快照。
Compensation service in the OTMPS scenario.
OTMPS场景中的补偿服务。
Compensation service in the OTMPS scenario.
OTMPS场景中的补偿服务。
应用推荐