Package org.springframework.ide.eclipse.config.graph.model

Examples of org.springframework.ide.eclipse.config.graph.model.Transition


        if (state != null && state.trim().length() > 0) {
          Node stateRef = getDiagram().getReferencedNode(state);
          if (stateRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(stateRef)) {
                Transition trans = new WebFlowTransition(this, activity, transition);
                list.add(trans);
              }
            }
          }
        }
        else {
          Transition trans = new WebFlowTransition(this, this, transition);
          list.add(trans);
        }
      }
    }
    return list;
View Full Code Here


        if (state != null && state.trim().length() > 0) {
          Node stateRef = getDiagram().getReferencedNode(state);
          if (stateRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(stateRef)) {
                Transition trans = new IfThenTransition(this, activity, transition);
                list.add(trans);
              }
            }
          }
        }
        state = transition.getAttribute(WebFlowSchemaConstants.ATTR_ELSE);
        if (state != null && state.trim().length() > 0) {
          Node stateRef = getDiagram().getReferencedNode(state);
          if (stateRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(stateRef)) {
                Transition trans = new IfElseTransition(this, activity, transition);
                list.add(trans);
              }
            }
          }
        }
View Full Code Here

        if (channel != null && channel.trim().length() > 0) {
          Node channelRef = getDiagram().getReferencedNode(channel);
          if (channelRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(channelRef)) {
                Transition trans = new AlternateTransition(this, activity, mapping);
                list.add(trans);
              }
            }
          }
        }
View Full Code Here

        String id = getInput().getAttribute(IntegrationSchemaConstants.ATTR_INPUT_CHANNEL);
        if (id == null || id.trim().length() == 0) {
          id = getInput().getAttribute(IntegrationSchemaConstants.ATTR_REQUEST_CHANNEL);
        }
        if (ref != null && id != null && ref.equals(id)) {
          Transition trans = new ImplicitTransition(activity, this, (IDOMAttr) activity.getInput()
              .getAttributeNode(attr));
          list.add(trans);
        }
      }
    }
View Full Code Here

        String id = getInput().getAttribute(IntegrationSchemaConstants.ATTR_INPUT_CHANNEL);
        if (id == null || id.trim().length() == 0) {
          id = getInput().getAttribute(IntegrationSchemaConstants.ATTR_REQUEST_CHANNEL);
        }
        if (ref != null && id != null && ref.equals(id)) {
          Transition trans = new ImplicitTransition(this, activity, (IDOMAttr) activity.getInput()
              .getAttributeNode(attr));
          list.add(trans);
        }
      }
    }
View Full Code Here

        if (channel != null && channel.trim().length() > 0) {
          Node channelRef = getDiagram().getReferencedNode(channel);
          if (channelRef instanceof IDOMElement) {
            for (Activity activity : registry) {
              if (!(activity instanceof ParallelActivity) && activity.getInput().equals(channelRef)) {
                Transition trans = new AlternateTransition(this, activity, recipient);
                list.add(trans);
              }
            }
          }
        }
View Full Code Here

      labels.addAll(activity.getSecondaryOutgoingAttributes());
      for (String attr : labels) {
        String ref = activity.getInput().getAttribute(attr);
        String id = getInput().getAttribute(IntegrationSchemaConstants.ATTR_OUTPUT_CHANNEL);
        if (ref != null && id != null && ref.equals(id)) {
          Transition trans = new ImplicitTransition(activity, this, (IDOMAttr) activity.getInput()
              .getAttributeNode(attr));
          list.add(trans);
        }
      }
    }
View Full Code Here

      labels.addAll(activity.getSecondaryIncomingAttributes());
      for (String attr : labels) {
        String ref = activity.getInput().getAttribute(attr);
        String id = getInput().getAttribute(IntegrationSchemaConstants.ATTR_OUTPUT_CHANNEL);
        if (ref != null && id != null && ref.equals(id)) {
          Transition trans = new ImplicitTransition(this, activity, (IDOMAttr) activity.getInput()
              .getAttributeNode(attr));
          list.add(trans);
        }
      }
    }
View Full Code Here

  @Override
  public ConnectionAnchor getSourceConnectionAnchor(ConnectionEditPart connection) {
    if (connection instanceof TransitionPart) {
      TransitionPart part = (TransitionPart) connection;
      Transition trans = (Transition) part.getModel();
      IDOMNode input = trans.getInput();
      if (input != null) {
        ConnectionAnchor anchor = ((BorderedActivityLabel) getFigure()).getConnectionAnchor(trans.getInput()
            .getLocalName());
        if (anchor != null) {
          return anchor;
        }
      }
View Full Code Here

  @Override
  public ConnectionAnchor getTargetConnectionAnchor(ConnectionEditPart connection) {
    if (connection instanceof TransitionPart) {
      TransitionPart part = (TransitionPart) connection;
      Transition trans = (Transition) part.getModel();
      IDOMNode input = trans.getInput();
      if (input != null) {
        ConnectionAnchor anchor = ((BorderedActivityLabel) getFigure()).getConnectionAnchor(trans.getInput()
            .getLocalName());
        if (anchor != null) {
          return anchor;
        }
      }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.graph.model.Transition

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.