Package org.jbpm.pvm.impl

Examples of org.jbpm.pvm.impl.ProcessElementImpl


  public ProcessFactory exceptionHandler(Class<? extends Exception> exceptionClass) {
    if (exceptionHandler!=null) {
      throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd");
    }
   
    ProcessElementImpl processElement = null;
    if (eventListenerReference!=null) {
      processElement = eventListenerReference;
    } else if (event!=null) {
      processElement = event;
    } else if (observableElement!=null) {
      processElement = observableElement;
    } else {
      throw new PvmException("no current process element, event or action");
    }
   
    exceptionHandler = processElement.createExceptionHandler();

    if (exceptionClass!=null) {
      exceptionHandler.setExceptionClassName(exceptionClass.getName());
    }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.impl.ProcessElementImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.