Package org.jbpm.pvm.internal.model

Examples of org.jbpm.pvm.internal.model.Condition


    // evaluate the conditions and find the transitions that should be forked
    List<Transition> forkingTransitions = new ArrayList<Transition>();
    List<Transition> outgoingTransitions = activity.getOutgoingTransitions();
    for (Transition transition: outgoingTransitions) {
      Condition condition = transition.getCondition();
      if  ( (condition==null)
            || (condition.evaluate(execution))
          ) {
        forkingTransitions.add(transition);
      }
    }
View Full Code Here


  private Transition findTransition(ExecutionImpl execution) {
    Activity activity = execution.getActivity();
    List<Transition> outgoingTransitions = activity.getOutgoingTransitions();
    for (Transition transition : outgoingTransitions) {
      Condition condition = transition.getCondition();
      if  ( (condition==null)
            || (condition.evaluate(execution))
          ) {
        return transition;
      }
    }
    return null;
View Full Code Here

  private static final long serialVersionUID = 1L;
 
  protected UserCodeReference conditionReference;

  public boolean evaluate(OpenExecution execution) {
    Condition condition = (Condition) conditionReference.getObject(execution);
    return condition.evaluate(execution);
  }
View Full Code Here

  public static Transition findTransitionUsingConditions(ExecutionImpl execution) {
    Activity activity = execution.getActivity();
    List<Transition> outgoingTransitions = activity.getOutgoingTransitions();
    for (Transition transition : outgoingTransitions) {
      Condition condition = transition.getCondition();
      if  ( (condition==null)
            || (condition.evaluate(execution))
          ) {
        return transition;
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.model.Condition

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.