Package org.openbp.core.model.item.process

Examples of org.openbp.core.model.item.process.Node


      // No control link present, try to continue at an initial node
      // with the same name as the exit socket
      String nextName = exitSocket.getName();

      NodeSocket nextSocket = null;
      Node nextNode = context.getCurrentSocket().getProcess().getNodeByName(nextName);
      if (nextNode != null && nextNode instanceof InitialNode)
      {
        nextSocket = nextNode.getDefaultExitSocket();
      }

      if (nextSocket == null)
      {
        ProcessItem process = exitSocket.getNode().getProcess();
View Full Code Here


      // Likely not to happen here, but...
      LogUtil.error(getClass(), "The following error occured while trying to handle an exception. [{0}]", context, e2);
    }
    if (socket == null)
    {
      Node node = context.getCurrentSocket().getProcess().getNodeByName(CoreConstants.ERROR_SOCKET_NAME);
      if (node != null)
      {
        if (! (node instanceof InitialNode))
        {
          String msg = LogUtil.error(getClass(), "Error node $0 must be an initial node. [{0}]", node.getQualifier(), context);
          throw new EngineException("InvalidErrorNode", msg);
        }
        socket = ((InitialNode) node).getDefaultExitSocket();
      }
    }
View Full Code Here

    pd.setDescription(process.getDescription());

    boolean foundStep = false;
    for (Iterator it = process.getNodes(); it.hasNext();)
    {
      Node node = (Node) it.next();

      if (node instanceof WorkflowNode)
      {
        WorkflowTaskDescriptor task = ((WorkflowNode) node).getWorkflowTaskDescriptor();
View Full Code Here

   * should be considered. In this case, the list will be ordered by the sequence id. False for all sockets.
   * @return The list of exit sockets (contains {@link SocketDescriptor} objects) or null if no such node could be found
   */
  public static List determinePossibleExits(NodeSocket currentSocket, Class desiredNodeClass, boolean sequenceIdSocketsOnly)
  {
    Node node = findNextMatchingNode(currentSocket, desiredNodeClass);
    if (node == null)
      return null;

    List ret = new ArrayList();

    // Get sockets in order of sequence number and add to return list
    Iterator itSockets;
    if (sequenceIdSocketsOnly)
      itSockets = node.getOrderedSockets();
    else
      itSockets = node.getSockets();

    while (itSockets.hasNext())
    {
      NodeSocket socket = (NodeSocket) itSockets.next();

View Full Code Here

    NodeSocket editedSocket = (NodeSocket) editedObject;
    if (editedSocket.isDefaultSocket())
    {
      boolean isEntry = editedSocket.isEntrySocket();

      Node node = editedSocket.getNode();
      for (Iterator it = node.getSockets(); it.hasNext();)
      {
        NodeSocket socket = (NodeSocket) it.next();
        if (socket.isEntrySocket() != isEntry)
        {
          // Socket type does not match
View Full Code Here

TOP

Related Classes of org.openbp.core.model.item.process.Node

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.