A fault handler contains one or more catch elements.
错误处理程序包含一个或多个捕获元素。
They can be caught by a catch element in a fault handler.
他们会被默认处理程序中的catch元素捕获。
A fault handler is an optional part of a scope or invoke activity.
错误处理程序是范围或调用活动的可选部分。
This provides an alternative to using a fault handler for the task.
这提供了对使用任务的错误处理程序的替代方案。
You can only place it inside a compensation handler or fault handler.
您只需将其放置在补偿处理程序或错误处理程序中即可。
The next step is to define the fault handler to catch the shippingfault.
下一步是定义错误处理程序来捕获shippingfault。
This is caught by the Fault Handler within the request forwarder component.
该故障由请求转发器组件内的Fault Handler截获。
As an example, Figure 15 shows a simple fault handler for the ShipOrder activity.
作为一个示例,图15显示了ShipOrder活动的简单错误处理程序。
You can use the basic fault handler provided by the Apache SOAP, or create your own.
您可以使用ApacheSOAP提供的基本故障处理程序,或者也可以创建自己的故障处理程序。
An empty fault handler with a catch activity is displayed as shown in Figure 11.
带有catch活动的空fault处理程序如图11所示。
Next you need to add the necessary activities in the fault handler such as the following
接下来需要在故障处理程序中添加必要的活动,如下所示
In the case that there were some error, the associated fault handler is notified instead.
而如果服务调用中出现了错误,则相关联的fault处理器会被通知。
The fault handler USES compensation handlers to undo actions that have already been committed.
错误处理器使用补偿处理器来“撤销”之前已经提交的动作。
In the details for the Catch element in the fault handler, select User-defined for the fault type.
在错误处理程序的Catch元素的详细信息中,选择user - defined作为错误类型。
In the outer scope, a fault handler contains a compensate activity whose target is set to the inner scope.
在外部范围中,错误处理程序包含一个其目标设置为内部范围的补偿活动。
In the process editor, the process and each activity within it can have a fault handler associated with it.
在Process编辑器中,流程及其内部的每个活动都可以有一个与其有关的故障处理程序。
A fault handler of a scope may make use of compensation handlers to undo actions performed within that scope.
作用域的故障处理程序可能使用补偿处理程序来撤销这个作用域中进行的操作。
Once you've created the fault handler, you'll need to register it in the deployment descriptor, as noted above.
一旦您创建了故障处理程序,您将需要在部署描述符中注册它,这一点上面已经提到过。
This is required if an unexpected error occurs and there is no fault handler specifically modeled to handle it.
如果发生意外错误,并且没有专门建模错误处理程序来处理该错误,则需要该操作。
The activity is then put in state failed and the fault is propagated to the fault handler of the next enclosing scope.
然后将该活动置于已失败状态,并且将错误传播到下一个封闭范围的错误处理程序。
First, in this example, you need to add a fault handler on the selected BPEL activity to catch the exceptions it throws.
首先,在本实例中,用户需要在选择的BPEL活动中添加故障处理程序,来捕捉其抛出的异常。
Under the ShippingFault element in the fault handler, add a snippet activity, and then fill in the details as in Figure 27.
在错误处理程序的ShippingFault元素下,添加snippet活动,然后如图27所示填写详细信息。
If something goes wrong after the inner scope has completed and the fault handler runs, then the CorrectNotify activity runs.
如果在内部范围完成之后发生了错误,并且错误处理程序在运行,则会运行CorrectNotify活动。
Fault handler There are three types of fault handlers: System fault handler, Component fault handler and Agent fault handler.
故障处理有三种类型的故障处理:系统故障处理程序,组件故障处理程序和代理故障处理器。
If the fault Selector detects a fault, the current message will be processed by a fault Handler rather than by a Data Handler.
如果FaultSelector检测到一个错误,当前消息将由Fault Handler而不是Data Handler处理。
The fault handler in Listing 6 below defines the set of faults it attempts to handle via a corresponding set of elements (line 36).
在下面的清单6中,故障处理程序通过相应的一组元素(第36行)定义了它试图处理的故障集。
Again, the main scope needs a fault handler in order to prevent the fault from being propagated to the surrounding scope or process.
同样,为了防止错误传递到周围的范围或流程,主范围需要一个错误处理程序。
Instead the service Locator assumes that the result handler and the fault handler will belong to the class calling the service.
象反,服务定位器假设结果句柄和错误句柄将属于调用服务的类。
Within this Fault Handler, we update the system availability indicator to reflect the unavailability of the target Queue Manager.
在这个Fault Handler中,我们更新系统可用性指示器来反映目标QueueManager的不可用性。
Note that clicking the orange and red 'x' at the top-right of the scope activity toggles between showing and hiding the fault handler.
请注意,单击范围活动右上角的橘红色“x”号可以在错误处理程序的显示和隐藏之间进行切换。
应用推荐