⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faultactionhandler.java

📁 jbpm-bpel-1.1.Beta3 JBoss jBPM Starters Kit  是一个综合包
💻 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;
import org.jbpm.graph.exe.Token;

/**
 * Delivers the {@linkplain FaultInstance fault} carried by a
 * {@link BpelFaultException} to the nearest enclosing scope.
 * @author Alejandro Guizar
 * @version $Revision: 1.2 $ $Date: 2007/01/22 00:24:55 $
 */
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 {
    Token token = exeContext.getToken();

    BpelFaultException faultException = (BpelFaultException) exeContext.getException();
    FaultInstance faultInstance = faultException.getFaultInstance();

    ScopeInstance scopeInstance = Scope.getInstance(token);
    log.debug("handling fault: " + scopeInstance, faultException);

    scopeInstance.faulted(faultInstance);
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -