Examples of Transition


Examples of org.eclipse.uml2.uml.Transition

  {
    ArrayList<Vertex> colVertices = new ArrayList<Vertex>();
    ArrayList<Vertex> colPseudoStates = findInitPseudoState(in_oStateMachine);
    for(Vertex oVertex : colPseudoStates)
    {
      Transition oTransition = oVertex.getOutgoings().get(0);
      colVertices.add(oTransition.getTarget());
    }
    return colVertices;
  }
View Full Code Here

Examples of org.enhydra.shark.xpdl.elements.Transition

            boolean addToCollection) {
        if (type == null || type.equals("")) {
            type = JaWEConstants.TRANSITION_TYPE_UNCONDITIONAL;
        }

        Transition tra = createXPDLTransition(tras, type);
        if (type.equals(JaWEConstants.TRANSITION_TYPE_CONDITIONAL)) {
            tra.getCondition().setTypeCONDITION();
        } else if (type.equals(JaWEConstants.TRANSITION_TYPE_OTHERWISE)) {
            tra.getCondition().setTypeOTHERWISE();
        } else if (type.equals(JaWEConstants.TRANSITION_TYPE_EXCEPTION)) {
            tra.getCondition().setTypeEXCEPTION();
        } else if (type.equals(JaWEConstants.TRANSITION_TYPE_DEFAULTEXCEPTION)) {
            tra.getCondition().setTypeDEFAULTEXCEPTION();
        }

        adjustXPDLObject(tra, type);

        if (addToCollection) {
View Full Code Here

Examples of org.fireflow.model.net.Transition

            wfElementInstanceMap.put(endNode.getId(), endNodeInstance);
        }
        //转移线
        List<Transition> transitions = workflowProcess.getTransitions();
        for (int i = 0; i < transitions.size(); i++) {
            Transition transition = transitions.get(i);
            TransitionInstance transitionInstance = new TransitionInstance(transition);

            String fromNodeId = transition.getFromNode().getId();
            if (fromNodeId != null) {
                INodeInstance enteringNodeInstance = (INodeInstance) wfElementInstanceMap.get(fromNodeId);
                if (enteringNodeInstance != null) {
                    enteringNodeInstance.addLeavingTransitionInstance(transitionInstance);
                    transitionInstance.setEnteringNodeInstance(enteringNodeInstance);
                }
            }

            String toNodeId = transition.getToNode().getId();
            if (toNodeId != null) {
                INodeInstance leavingNodeInstance = (INodeInstance) wfElementInstanceMap.get(toNodeId);
                if (leavingNodeInstance != null) {
                    leavingNodeInstance.addEnteringTransitionInstance(transitionInstance);
                    transitionInstance.setLeavingNodeInstance(leavingNodeInstance);
View Full Code Here

Examples of org.ggp.base.util.propnet.architecture.components.Transition

  {
    if ( sentence.getName().getValue().equals("next") )
    {
      Proposition head = getProposition(GdlPool.getRelation(GdlPool.getConstant("true"),
                                                            sentence.getBody()));
      Transition transition = new Transition();
      Proposition preTransition = new Proposition(GdlPool.getProposition(GdlPool.getConstant("anon")));

      link(preTransition, transition);
      link(transition, head);
View Full Code Here

Examples of org.impalaframework.module.Transition

        }
      }

      if (notify) {

        Transition transition = moduleStateChangeListener.getTransition();

        if (transition != null) {
          if (!transition.equals(change.getTransition())) {
            notify = false;
          }
        }

      }
View Full Code Here

Examples of org.impalaframework.module.modification.Transition

      Assert.notNull(transitionProcessorRegistry, TransitionProcessorRegistry.class.getSimpleName() + " cannot be null");

      Collection<? extends ModuleStateChange> changes = transitions.getModuleTransitions();

      for (ModuleStateChange change : changes) {
        Transition transition = change.getTransition();
        ModuleDefinition currentModuleDefinition = change.getModuleDefinition();

        TransitionProcessor transitionProcessor = transitionProcessorRegistry.getTransitionProcessor(transition);
        transitionProcessor.process(this, transitions.getNewRootModuleDefinition(), currentModuleDefinition);
     
View Full Code Here

Examples of org.jboss.util.state.Transition

            {
               String msg = "Failed to resolve target state: " + targetName + " for transition: " + name;
               resolveFailed.append(msg);
               log.debug(msg);
            }
            Transition t = new Transition(name, target);
            s.addTransition(t);
         }
      }

      if (resolveFailed.length() > 0)
View Full Code Here

Examples of org.jboss.util.state.Transition

            {
               String msg = "Failed to resolve target state: " + targetName + " for transition: " + name;
               resolveFailed.append(msg);
               log.debug(msg);
            }
            Transition t = new Transition(name, target);
            s.addTransition(t);
         }
      }

      if (resolveFailed.length() > 0)
View Full Code Here

Examples of org.jbpm.graph.def.Transition

   * case that the completion of this task instances triggers a signal on the token. If this task
   * leads to a signal on the token, the given transition name will be used in the signal. If this
   * task completion does not trigger execution to move on, the transitionName is ignored.
   */
  public void end(String transitionName) {
    Transition leavingTransition = null;

    if (task != null) {
      Node node = task.getTaskNode();
      if (node == null) {
        node = (Node) task.getParent();
View Full Code Here

Examples of org.jbpm.graph.def.Transition

   * creates the transition object and configures it by the read attributes
   * @return the created <code>org.jbpm.graph.def.Transition</code> object (useful, if you want to override this method to read additional configuration properties)
   */
  public Transition resolveTransitionDestination(Element transitionElement, Node node)
  {
    Transition transition = new Transition();
    transition.setProcessDefinition(processDefinition);

    transition.setName(transitionElement.attributeValue("name"));
    transition.setDescription(transitionElement.elementTextTrim("description"));

    String condition = transitionElement.attributeValue("condition");
    if (condition == null)
    {
      Element conditionElement = transitionElement.element("condition");
      if (conditionElement != null)
      {
        condition = conditionElement.getTextTrim();
        // for backwards compatibility
        if ((condition == null) || (condition.length() == 0))
        {
          condition = conditionElement.attributeValue("expression");
        }
      }
    }
    transition.setCondition(condition);

    // add the transition to the node
    node.addLeavingTransition(transition);

    // set destinationNode of the transition
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.