Examples of PvmException


Examples of org.jbpm.PvmException

          try {
            variableClass = mapping.getVariableClass();
            log.finest("creating new "+variableClass.getName()+" for variable "+key);
            variable = (Variable) variableClass.newInstance();
          } catch (Exception e) {
            throw new PvmException("couldn't instantiate variable instance class '"+variableClass.getName()+"'");
          }
          Converter converter = mapping.getConverter();
          variable.setConverter(converter);
        }
      }
View Full Code Here

Examples of org.jbpm.PvmException

    public void apply(Object target, WireContext wireContext) {
      Configuration configuration = (Configuration) target;
      try {
        configuration.addURL(new URL(url));
      } catch (Exception e) {
        throw new PvmException("couldn't add hibernate mapping from URL "+url, e);
      }
    }
View Full Code Here

Examples of org.jbpm.PvmException

  public Timer(String name, ExecutionImpl execution) {
    super(execution);
    this.name = name;
    if (name==null) {
      throw new PvmException("timer name is null");
    }
    eligibleDate = new Date(Long.MAX_VALUE);
  }
View Full Code Here

Examples of org.jbpm.PvmException

    return removeVariable(key);
  }

  public void set(String key, Object value) {
    if (key==null) {
      throw new PvmException("name is null");
    }

    Variable variable = getVariable(key);
    // if there is already a variable instance and it doesn't support the current type...
    if ( (variable!=null)
View Full Code Here

Examples of org.jbpm.PvmException

  }

  public Activity getBehaviour() {
    Activity behaviour = ( behaviourReference!=null ? behaviourReference.get() : null);
    if (behaviour==null) {
      throw new PvmException("no behaviour on "+this);
    }
    return behaviour;
  }
View Full Code Here

Examples of org.jbpm.PvmException

  }

  /** marks the last created node as the initial node in the process. */
  public ProcessFactory initial() {
    if (node==null) {
      throw new PvmException("no current node");
    }
    if (processDefinition.getInitial()!=null) {
      throw new PvmException("duplicate initial node");
    }
    processDefinition.setInitial(node);
    return this;
  }
View Full Code Here

Examples of org.jbpm.PvmException

 
  /** sets the behaviour on the current node.
   * A current node is required. */
  public ProcessFactory behaviour(Activity activity) {
    if (exceptionHandler!=null) {
      throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd");
    }
    if (node==null) {
      throw new PvmException("no current node");
    }
    node.setBehaviour(activity);
    return this;
  }
View Full Code Here

Examples of org.jbpm.PvmException

  /** sets the asyncExecute property on the current node.
   * A current node is required. */
  public ProcessFactory asyncExecute() {
    if (exceptionHandler!=null) {
      throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd");
    }
    if (node==null) {
      throw new PvmException("no current node");
    }
    node.setExecutionAsync(true);
    return this;
 
View Full Code Here

Examples of org.jbpm.PvmException

  /** sets the asyncLeave property on the current node.
   * A current node is required. */
  public ProcessFactory asyncLeave() {
    if (exceptionHandler!=null) {
      throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd");
    }
    if (node==null) {
      throw new PvmException("no current node");
    }
    node.setLeaveAsync(true);
    return this;
 
View Full Code Here

Examples of org.jbpm.PvmException

  /** sets the asyncSignal property on the current node.
   * A current node is required. */
  public ProcessFactory asyncSignal() {
    if (exceptionHandler!=null) {
      throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd");
    }
    if (node==null) {
      throw new PvmException("no current node");
    }
    node.setSignalAsync(true);
    return this;
 
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.