Package org.jbpm

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


    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

  }

  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

  }

  /** 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

 
  /** 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

  /** 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

  /** 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

  /** 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

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

  /** starts a block in which nested nodes can be created.
   * This block can be ended with {@link #compositeEnd()}.
   * A current node is required. */
  public ProcessFactory compositeNode(String nodeName) {
    if (exceptionHandler!=null) {
      throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd");
    }

    if (compositeElementStack==null) {
      compositeElementStack = new Stack<CompositeElementImpl>();
    }
View Full Code Here

TOP

Related Classes of org.jbpm.PvmException

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.