Package org.camunda.bpm.engine.impl.pvm

Examples of org.camunda.bpm.engine.impl.pvm.PvmException


      try {
        execution.invokeListener(listener);
      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new PvmException("couldn't execute event listener : "+e.getMessage(), e);
      }
      execution.setListenerIndex(executionListenerIndex + 1);
      execution.performOperationSync(this);

    } else {
View Full Code Here


      try {
        execution.invokeListener(listener);
      } catch (RuntimeException e) {
        throw e;
      } catch (Exception e) {
        throw new PvmException("couldn't execute event listener : "+e.getMessage(), e);
      }
      executionListenerIndex += 1;
      execution.setListenerIndex(executionListenerIndex);
    }
    execution.setListenerIndex(0);
View Full Code Here

          }

          return false;

        } else {
          throw new PvmException("Case execution '"+id+"': has no parent.");
        }
      } else {
        // missing entry criteria (Sentry) is considered true.
        return true;
      }

    } else {
      throw new PvmException("Case execution '"+id+"': has no current activity.");

    }

  }
View Full Code Here

          }

          return false;

        } else {
          throw new PvmException("Case execution '"+id+"': has no parent.");
        }
      } else {
        // missing entry criteria (Sentry) is considered true.
        return false;
      }

    } else {
      throw new PvmException("Case execution '"+id+"': has no current activity.");

    }

  }
View Full Code Here

  // methods that translate to operations /////////////////////////////////////

  public void signal(String signalName, Object signalData) {
    if (getActivity() == null) {
      throw new PvmException("cannot signal execution " + this.id + ": it has no current activity");
    }

    SignallableActivityBehavior activityBehavior = (SignallableActivityBehavior) activity.getActivityBehavior();
    try {
      activityBehavior.signal(this, signalName, signalData);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new PvmException("couldn't process signal '"+signalName+"' on activity '"+activity.getId()+"': "+e.getMessage(), e);
    }
  }
View Full Code Here

    }
  }

  public void take(PvmTransition transition) {
    if (this.transition!=null) {
      throw new PvmException("already taking a transition");
    }
    if (transition==null) {
      throw new PvmException("transition is null");
    }
    TransitionImpl transitionImpl = (TransitionImpl) transition;
    setActivity(transitionImpl.getSource());
    setTransition(transitionImpl);
    performOperation(PvmAtomicOperation.TRANSITION_NOTIFY_LISTENER_END);
View Full Code Here

    ArrayList<PvmExecutionImpl> recyclableExecutions = (_recyclableExecutions!=null ? new ArrayList<PvmExecutionImpl>((List)_recyclableExecutions) : new ArrayList<PvmExecutionImpl>());

    if (recyclableExecutions.size()>1) {
      for (PvmExecutionImpl recyclableExecution: recyclableExecutions) {
        if (recyclableExecution.isScope()) {
          throw new PvmException("joining scope executions is not allowed");
        }
      }
    }

    PvmExecutionImpl concurrentRoot = ((isConcurrent && !isScope) ? getParent() : this);
View Full Code Here

TOP

Related Classes of org.camunda.bpm.engine.impl.pvm.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.