Examples of BpmnError


Examples of org.activiti.engine.delegate.BpmnError

                + " nor " + JavaDelegate.class);
      }
    } catch (Exception exc) {

      Throwable cause = exc;
      BpmnError error = null;
      while (cause != null) {
        if (cause instanceof BpmnError) {
          error = (BpmnError) cause;
          break;
        }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

        if (executions == null) {
            executions = 0;
        }
        executions++;
        if (executionsBeforeError == null || executionsBeforeError < executions) {
            throw new BpmnError("23", "This is a business fault, which can be caught by a BPMN Error Event.");
        } else {
            execution.setVariable("executions", executions);
        }
    }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

import org.activiti.engine.delegate.BpmnError;

public class ThrowBpmnError implements JavaDelegate {
 
  public void execute(DelegateExecution execution) {
    throw new BpmnError("manual", "Manually throwing a BpmnError from this instance of \"Demo Partial Deletion\".");
  }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

           break;
        }
        execution = getSuperExecution(execution);
    }
    if (execution == null) {
      throw new BpmnError(errorCode, "No catching boundary event found for error with errorCode '"
                  + errorCode + "', neither in same process nor in parent process");     
    }
  }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

                + " nor " + JavaDelegate.class);
      }
    } catch (Exception exc) {

      Throwable cause = exc;
      BpmnError error = null;
      while (cause != null) {
        if (cause instanceof BpmnError) {
          error = (BpmnError) cause;
          break;
        }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

    if (executions == null) {
      executions = 0;
    }
    executions++;
    if (executionsBeforeError == null || executionsBeforeError < executions) {
      throw new BpmnError("23", "This is a business fault, which can be caught by a BPMN Error Event.");
    } else {
      execution.setVariable("executions", executions);
    }
  }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

public class BpmnErrorBean implements Serializable {

  private static final long serialVersionUID = 1L;

  public void throwBpmnError() {
    throw new BpmnError("23", "This is a business fault, which can be caught by a BPMN Error Event.");
  }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

public class ErrorBoundaryEventAttachToTaskService implements JavaDelegate {

  @Override
  public void execute(DelegateExecution execution) throws Exception {
    // TODO throw error for error boundary event
    throw new BpmnError("errorOne");
  }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

    }
    leave(execution);
    } catch (Exception exc) {

      Throwable cause = exc;
      BpmnError error = null;
      while (cause != null) {
        if (cause instanceof BpmnError) {
          error = (BpmnError) cause;
          break;
        }
View Full Code Here

Examples of org.activiti.engine.delegate.BpmnError

    } else { // no matching catch found, going one level up in process hierarchy
      ActivityExecution superSuperExecution = getSuperExecution(superExecution);
      if (superSuperExecution != null) {
        executeCatchInSuperProcess(errorCode, superSuperExecution);
      } else {
        throw new BpmnError(errorCode, "No catching boundary event found for error with errorCode '"
                + errorCode + "', neither in same process nor in parent process");
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.