Package org.jbpm.graph.def

Examples of org.jbpm.graph.def.DelegationException


      {
        graphElement.raiseException(exception, executionContext);
      }
      else
      {
        throw new DelegationException(exception, executionContext);
      }
    }
  }
View Full Code Here


        outputMap.put(outputName, outputValue);
      }
      log.debug("script output: " + outputMap);
    }
    catch (ParseException e) {
      throw new DelegationException("parse error occurred", e);
    }
    catch (TargetError e) {
      throw new DelegationException("script threw exception", e.getTarget());
    }
    catch (EvalError e) {
      log.warn("exception during evaluation of script expression", e);
      throw new DelegationException("script evaluation failed", e);
    }

    return outputMap;
  }
View Full Code Here

    Class<?> delegationClass = null;
    try {
      delegationClass = Class.forName(className, false, classLoader);
    }
    catch (ClassNotFoundException e) {
      throw new DelegationException("could not load delegation class '" + className + "'", e);
    }

    // find the instantiator
    Instantiator instantiator = instantiatorCache.get(configType);
    if (instantiator == null) {
View Full Code Here

    } catch (Exception exception) {
      GraphElement graphElement = executionContext.getEventSource();
      if (graphElement!=null) {
        graphElement.raiseException(exception, executionContext);
      } else {
        throw new DelegationException(exception, executionContext);
      }
    }
  }
View Full Code Here

    } catch (Exception exception) {
      GraphElement graphElement = executionContext.getEventSource();
      if (graphElement!=null) {
        graphElement.raiseException(exception, executionContext);
      } else {
        throw new DelegationException(exception, executionContext);
      }
    }
  }
View Full Code Here

                        }
                        if (!handled) {
                            if (exception instanceof JbpmException) {
                                throw (JbpmException) exception;
                            } else {
                                throw new DelegationException(exception, null);
                            }
                        }
                    }
                }
            }
View Full Code Here

      clazz = clazz.getSuperclass();
    }
    if (exception instanceof JbpmException) {
      throw (JbpmException) exception;
    } else {
      throw new DelegationException(exception, null);
    }
  }
View Full Code Here

    } catch (Exception exception) {
      GraphElement graphElement = executionContext.getEventSource();
      if (graphElement!=null) {
        graphElement.raiseException(exception, executionContext);
      } else {
        throw new DelegationException(exception, executionContext);
      }
    }
  }
View Full Code Here

        Object outputValue = interpreter.get(outputName);
        outputMap.put(outputName, outputValue);
      }
      log.debug("script output: "+outputMap);
    } catch (TargetError e) {
      throw new DelegationException("script evaluation exception", e.getTarget());
    } catch (Exception e) {
      log.warn("exception during evaluation of script expression", e);
      // try to throw the cause of the EvalError
      if (e.getCause() instanceof Exception) {
        throw (Exception) e.getCause();
View Full Code Here

TOP

Related Classes of org.jbpm.graph.def.DelegationException

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.