Package org.jbpm.pvm

Examples of org.jbpm.pvm.Activity.execute()


            Activity activity = eventListenerReference.get();
           
            log.finest("executing "+activity+" for "+event);
            try {
              this.userCodeType = UserCodeType.EVENT_ACTIVITY;
              activity.execute(this);
            } catch (Exception e) {
              log.finest("exception during action: "+e);
              handleException((ObservableElementImpl) observableElement, event, eventListenerReference, e, "couldn't run action "+activity);
            } finally {
              this.userCodeType = null;
View Full Code Here


          try {
            if (Environment.getCurrent() == null) {
              tmpEnvironment =
                environmentFactory.openEnvironment();
            }
            activity.execute(timer.getExecution());
          } finally {
            if (tmpEnvironment != null)
              tmpEnvironment.close();
          }
        } else {
View Full Code Here

        Activity activity = actionReference.get();
       
        log.finest("executing "+activity+" for "+this);
        try {
          execution.userCodeType = UserCodeType.EXCEPTION_HANDLER;
          activity.execute(execution);
        } catch (RuntimeException e) {
          throw e;
        } catch (Exception e) {
          throw new PvmException("couldn't execute "+activity, e);
        } finally {
View Full Code Here

    Activity activity = node.getBehaviour();
   
    try {
      execution.userCodeType = ExecutionImpl.UserCodeType.NODE_BEHAVIOUR;
      execution.propagation = Propagation.UNSPECIFIED;
      activity.execute(execution);
    } catch (Exception e) {
      execution.handleException(node, null, null, e, "couldn't execute node behaviour "+activity);
    } finally {
      execution.userCodeType = null;
    }
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.