📄 faultactionhandler.java
字号:
package org.jbpm.bpel.graph.scope;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.jbpm.bpel.graph.exe.BpelFaultException;import org.jbpm.bpel.graph.exe.FaultInstance;import org.jbpm.bpel.graph.exe.ScopeInstance;import org.jbpm.graph.def.ActionHandler;import org.jbpm.graph.exe.ExecutionContext;/** * Delivers the {@linkplain FaultInstance fault} carried by a * {@link BpelFaultException} to the nearest enclosing scope. * @author Alejandro Guizar * @version $Revision: 1.3 $ $Date: 2007/02/19 22:25:44 $ */public class FaultActionHandler implements ActionHandler { private static final Log log = LogFactory.getLog(FaultActionHandler.class); private static final long serialVersionUID = 1L; public void execute(ExecutionContext exeContext) throws Exception { ScopeInstance scopeInstance = Scope.getInstance(exeContext.getToken()); BpelFaultException faultException = (BpelFaultException) exeContext.getException(); log.debug("handling fault exception: " + scopeInstance, faultException); scopeInstance.faulted(faultException.getFaultInstance()); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -