Compensation service in the OTMPS scenario.
OTMPS场景中的补偿服务。
Step 3: Add a Partner Link for the compensation service.
步骤3:添加补偿服务的伙伴链接。
Step 1: Create an interface for the compensation service.
步骤1:创建补偿服务的接口。
Select Retry to invoke the failed compensation service again.
选择Retry来再次调用一个失败的补偿服务。
A compensation service is similar to a forwarding service.
补偿服务与转发服务类似。
If it is the top process, the compensation service is disabled.
如果它本身是顶部流程,补偿服务将禁用。
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.
您可以明确定义补偿服务的输入消息。
So in order to enable compensation service, you have to use the setting Required.
所以,为了启用补偿服务,您不得不使用Required设置。
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.
在工作流中,每个服务活动可能都有一个与之相关联的补偿服务。
This compensation service backs out committed updates or takes an alternative action.
补偿服务收回已提交的更新或者采取相反的措施。
This "compensation service" is responsible for undoing the actions performed by the forward.
“补偿”服务负责还原forward执行的行为。
If it doesn't exist, you need to create a service interface for your compensation service.
如果它不存在,则需要为补偿服务创建服务接口。
In such cases, there is no need for compensation service activities inside the transaction.
在这种情况下,事务内部并不需要补偿服务活动。
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 场景中的使用。
Only activities that are not part of a transaction need the compensation service, for example, sending e-mails.
只有未参与事务的活动才需要补偿服务,例如,发送电子邮件。
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 服务所做的改变。
Doing this, the Activity Takes Part in Transaction flag should be unchecked in every case where a compensation service is defined.
为实现这一点,活动参与事务应该不被选中,对于每一个定义的补偿服务。
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.
当流程中发生故障时,执行可选的补偿服务来补偿转发服务的行为。
Every forward service that needs to be undone when the long-running process fails must have a compensation service with its input message defined.
当长期运行的过程失败需要一个定义了输入消息的补偿服务时,每一个forward服务都需要复原。
应用推荐