Package org.jbpm

Examples of org.jbpm.PvmException


       ) {
      event = ((TransitionImpl)observableElement).createEvent();
      return event;
    }
    if (event==null) {
      throw new PvmException("no current event");
    }
    return event;
  }
View Full Code Here


  }

  /** adds a configuration to the current process element */
  public ProcessFactory property(Descriptor descriptor) {
    if (exceptionHandler!=null) {
      throw new PvmException("exceptionHandler needs to be closed with exceptionHandlerEnd");
    }
    if (observableElement==null) {
      throw new PvmException("no current process element");
    }
    if (event!=null) {
      event.addProperty(descriptor);
    } else {
      observableElement.addProperty(descriptor);
View Full Code Here

  public void close() {
    defaultEnvironmentFactory.applicationWireContext.fire(DefaultEnvironment.EVENT_CLOSEENVIRONMENT, this);
   
    Environment popped = pop();
    if (this!=popped) {
      throw new PvmException("environment nesting problem");
    }

    Context context = getBlockContext();
    if (context instanceof Closable) {
      ((Closable)context).close();
View Full Code Here

      throw (Error) exception;
    }
    if (exception instanceof RuntimeException) {
      throw (RuntimeException) exception;
    }
    throw new PvmException(exception);
  }
View Full Code Here

      this.destinationName = destinationName;
    }
    public void resolve() {
      NodeImpl destination = (NodeImpl) processDefinition.findNode(destinationName);
      if (destination==null) {
        throw new PvmException("couldn't find destination node "+destinationName+" for "+transition);
      }
      destination.addIncomingTransition(transition);
      transition.setDestination(destination);
    }
View Full Code Here

public class AuthorizationInterceptor extends Interceptor {

  public Object execute(Command command) {
    Environment environment = Environment.getCurrent();
    if (environment==null) {
      throw new PvmException("no environment for verifying authorization");
    }
    AuthorizationSession authorizationSession = environment.get(AuthorizationSession.class);
    if (authorizationSession==null) {
      throw new PvmException("no AuthorizationSession in environment for verifying authorization");
    }
    authorizationSession.checkPermission(command, environment);
    // if the authorization check succeeded, proceed
    return next.execute(command);
  }
View Full Code Here

  protected List<Listener> listeners = null;
 
  public void addListener(Listener listener) {
    if (listener==null) {
      throw new PvmException("listener is null");
    }
    if (listeners==null) {
      listeners = new ArrayList<Listener>();
    }
    listeners.add(listener);
View Full Code Here

    listeners.add(listener);
  }

  public void removeListener(Listener listener) {
    if (listener==null) {
      throw new PvmException("listener is null");
    }
    if (listeners!=null) {
      listeners.remove(listener);
    }
  }
View Full Code Here

    }
  }

  public Listener addListener(Listener listener, String eventName) {
    if (eventName==null) {
      throw new PvmException("eventName is null");
    }

    List<String> eventNames = new ArrayList<String>();
    eventNames.add(eventName);
View Full Code Here

  }


  public Listener addListener(Listener listener, List<String> eventNames) {
    if (listener==null) {
      throw new PvmException("listener is null");
    }
    if (eventNames==null) {
      throw new PvmException("eventNames is null");
    }
    FilterListener filterListener = new FilterListener(listener, eventNames);
    addListener(filterListener);
    return filterListener;
  }
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.