Examples of Join


Examples of org.jbpm.workflow.core.node.Join

        new ConnectionImpl(
            eventNode, Node.CONNECTION_DEFAULT_TYPE,
            actionNode, Node.CONNECTION_DEFAULT_TYPE
        );
       
        Join join = new Join();
        join.setName("XOR Join");
        join.setType(Join.TYPE_XOR);
        join.setId(5);
        process.addNode(join);
        new ConnectionImpl(
            milestoneNode, Node.CONNECTION_DEFAULT_TYPE,
            join, Node.CONNECTION_DEFAULT_TYPE
        );
View Full Code Here

Examples of org.jbpm.workflow.core.node.Join

        new ConnectionImpl(
            eventNode2, Node.CONNECTION_DEFAULT_TYPE,
            actionNode2, Node.CONNECTION_DEFAULT_TYPE
        );
       
        Join join = new Join();
        join.setName("AND Join");
        join.setType(Join.TYPE_AND);
        join.setId(7);
        process.addNode(join);
        new ConnectionImpl(
            startNode, Node.CONNECTION_DEFAULT_TYPE,
            join, Node.CONNECTION_DEFAULT_TYPE
        );
View Full Code Here

Examples of org.jbpm.workflow.core.node.Join

        new ConnectionImpl(
            eventNode2, Node.CONNECTION_DEFAULT_TYPE,
            actionNode2, Node.CONNECTION_DEFAULT_TYPE
        );
       
        Join join = new Join();
        join.setName("AND Join");
        join.setType(Join.TYPE_AND);
        join.setId(7);
        process.addNode(join);
        new ConnectionImpl(
            startNode, Node.CONNECTION_DEFAULT_TYPE,
            join, Node.CONNECTION_DEFAULT_TYPE
        );
View Full Code Here

Examples of org.jbpm.workflow.core.node.Join

        new ConnectionImpl(
            eventNode, Node.CONNECTION_DEFAULT_TYPE,
            actionNode, Node.CONNECTION_DEFAULT_TYPE
        );
       
        Join join = new Join();
        join.setName("XOR Join");
        join.setType(Join.TYPE_XOR);
        compositeNode.addNode(join);
        new ConnectionImpl(
            milestoneNode, Node.CONNECTION_DEFAULT_TYPE,
            join, Node.CONNECTION_DEFAULT_TYPE
        );
        new ConnectionImpl(
            actionNode, Node.CONNECTION_DEFAULT_TYPE,
            join, Node.CONNECTION_DEFAULT_TYPE
        );
        compositeNode.linkOutgoingConnections(join.getId(), Node.CONNECTION_DEFAULT_TYPE, Node.CONNECTION_DEFAULT_TYPE);
   
        EndNode endNode = new EndNode();
        endNode.setName("EndNode");
        endNode.setId(3);
        process.addNode(endNode);
View Full Code Here

Examples of org.jpos.transaction.participant.Join

        members = new ArrayList();
    }

    @Test
    public void testAbort2() throws Throwable {
        members.add(new Join());
        transactionManager.abort(1, 100L, "", members, false, null, null);
        assertEquals("(ArrayList) members.size()", 1, members.size());
    }
View Full Code Here

Examples of org.mcsg.survivalgames.commands.Join

    loadHelpInfo();
  }

  private void loadCommands() {
    commands.put("createarena", new CreateArena());
    commands.put("join", new Join());
    commands.put("addwall", new AddWall());
    commands.put("setspawn", new SetSpawn());
    commands.put("getcount", new ListArenas());
    commands.put("disable", new Disable());
    commands.put("start", new ForceStart());
View Full Code Here

Examples of org.modeshape.jcr.query.model.Join

    public void shouldParseSelectStarFromTwoJoinedSourcesWithWhereContainingJoinCriteria() {
        query = parse("SELECT * FROM [mgnl:content] JOIN [acme:stuff] ON ISSAMENODE([mgnl:content],[acme:stuff])");
        // SELECT * ...
        assertThat(query.columns().isEmpty(), is(true));
        // FROM ...
        Join join = isJoin(query.source());
        assertThat(join.getLeft(), is((Source)namedSelector(selectorName("mgnl:content"))));
        assertThat(join.getRight(), is((Source)namedSelector(selectorName("acme:stuff"))));
        assertThat(join.type(), is(JoinType.INNER));
        SameNodeJoinCondition joinCondition = isSameNodeJoinCondition(join.getJoinCondition());
        assertThat(joinCondition.selector1Name(), is(selectorName("mgnl:content")));
        assertThat(joinCondition.selector2Name(), is(selectorName("acme:stuff")));
        assertThat(joinCondition.getSelector2Path(), is(nullValue()));
        // WHERE ...
        assertThat(query.constraint(), is(nullValue()));
View Full Code Here

Examples of org.ocpsoft.rewrite.annotation.Join

{

   @Override
   public String resolveFrom(Class<?> clazz)
   {
      Join annotation = clazz.getAnnotation(Join.class);
      if (annotation != null) {
         return annotation.to();
      }
      return null;
   }
View Full Code Here

Examples of org.opencustomer.framework.db.util.engine.configuration.Join

       
        return restriction;
    }
   
    private Join parseJoin(Node node) throws TableEngineException {
        Join join = new Join();
       
        NamedNodeMap attributes = node.getAttributes();
        for(int i=0; i<attributes.getLength(); i++) {
            Node attributeNode = attributes.item(i);
            if(attributeNode.getNodeType() == Node.ATTRIBUTE_NODE) {
                String name = attributeNode.getNodeName();
                if("name".equals(name)) {
                    join.setName(attributeNode.getNodeValue());
                } else if("alias".equals(name)) {
                    join.setAlias(attributeNode.getNodeValue());
                } else if("type".equals(name)) {
                    join.setType(EnumUtility.valueOf(Join.Type.class, attributeNode.getNodeValue()));
                } else if("messageKey".equals(name)) {
                    join.setMessageKey(attributeNode.getNodeValue());
                }
            }
        }
       
        return join;
View Full Code Here

Examples of org.openrdf.query.algebra.Join

      Set<SignedConnection> joinOwners = exprOwnerMap.remove(iter.next());
      while (iter.hasNext()) {
        joinOwners.retainAll(exprOwnerMap.remove(iter.next()));
      }

      Join localJoin = new Join(joinArgs);
      exprOwnerMap.put(localJoin, joinOwners);
    }

    // Join any join arguments that have the same, unique owner
    for (Set<TupleExpr> joinArgs : getColocatedJoins(exprOwnerMap)) {
      // FIXME: handle args that are not connected
      Set<SignedConnection> owners = null;
      for (TupleExpr joinArg : joinArgs) {
        owners = exprOwnerMap.remove(joinArg);
        assert owners.size() == 1;
      }

      Join localJoin = new Join(joinArgs);
      exprOwnerMap.put(localJoin, owners);
    }

    Join replacement = new Join();

    for (Map.Entry<TupleExpr, Set<SignedConnection>> entry : exprOwnerMap.entrySet()) {
      TupleExpr joinArg = entry.getKey();
      Set<SignedConnection> owners = entry.getValue();

      if (owners.isEmpty()) {
        // No results for this expression and thus for the entire join
        join.replaceWith(new EmptySet());
        return;
      }
      else if (owners.size() == 1) {
        SignedConnection owner = owners.iterator().next();
        replacement.addArg(new OwnedTupleExpr(owner, joinArg));
      }
      else if (joinArg instanceof Join || distinct) {
        // Local join with multiple owners or distinct federation members
        Union union = new Union();
        for (SignedConnection owner : owners) {
          union.addArg(new OwnedTupleExpr(owner, joinArg.clone()));
        }
        replacement.addArg(union);
      }
      else {
        replacement.addArg(joinArg);
      }
    }

    join.replaceWith(replacement);
    // addOwners(join, exprOwnerMap, localExprs);
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.