Examples of Split


Examples of org.drools.workflow.core.node.Split

        if ("converging".equals(type)) {
          Join join = new Join();
          join.setType(Join.TYPE_XOR);
          return join;
        } else if ("diverging".equals(type)) {
          Split split = new Split();
          split.setType(Split.TYPE_XOR);
          String isDefault = attrs.getValue("default");
          split.setMetaData("Default", isDefault);
          return split;
        } else {
          throw new IllegalArgumentException(
          "Unknown gateway direction: " + type);
        }
View Full Code Here

Examples of org.drools.workflow.core.node.Split

        if ("converging".equals(type)) {
          Join join = new Join();
          join.setType(Join.TYPE_AND);
          return join;
        } else if ("diverging".equals(type)) {
          Split split = new Split();
          split.setType(Split.TYPE_AND);
          return split;
        } else {
          throw new IllegalArgumentException(
          "Unknown gateway direction: " + type);
        }
View Full Code Here

Examples of org.drools.workflow.core.node.Split

        Connection result = new ConnectionImpl(
          source, NodeImpl.CONNECTION_DEFAULT_TYPE,
          target, NodeImpl.CONNECTION_DEFAULT_TYPE);
        result.setMetaData("bendpoints", connection.getBendpoints());
        if (source instanceof Split) {
          Split split = (Split) source;
          Constraint constraint = new ConstraintImpl();
          String defaultConnection = (String) split.getMetaData("Default");
          if (defaultConnection != null && defaultConnection.equals(connection.getId())) {
            constraint.setDefault(true);
          }
          if (connection.getName() != null) {
            constraint.setName(connection.getName());
          } else {
            constraint.setName("");
          }
          if (connection.getType() != null) {
            constraint.setType(connection.getType());
          } else {
            constraint.setType("code");
          }
          if (connection.getLanguage() != null) {
            constraint.setDialect(connection.getLanguage());
          }
          if (connection.getExpression() != null) {
            constraint.setConstraint(connection.getExpression());
          }
          split.addConstraint(
            new ConnectionRef(target.getId(), NodeImpl.CONNECTION_DEFAULT_TYPE),
            constraint);
        }
      }
    }
View Full Code Here

Examples of org.drools.workflow.core.node.Split

//            if (bendpoints != null) {
//                xmlDump.append("g:bendpoints=\"" + bendpoints + "\" ");
//            }
//        }
        if (connection.getFrom() instanceof Split) {
          Split split = (Split) connection.getFrom();
          if (split.getType() == Split.TYPE_XOR || split.getType() == Split.TYPE_OR) {
            Constraint constraint = split.getConstraint(connection);
            if (constraint == null) {
                xmlDump.append(">" + EOL +
              "      <conditionExpression xs:type=\"tFormalExpression\" />");
            } else {
                    if (constraint.getName() != null && constraint.getName().trim().length() > 0) {
View Full Code Here

Examples of org.drools.workflow.core.node.Split

public class InclusiveGatewayHandler extends AbstractNodeHandler {
   
    protected Node createNode(Attributes attrs) {
        final String type = attrs.getValue("gatewayDirection");
        if ("diverging".equals(type)) {
          Split split = new Split();
          split.setType(Split.TYPE_OR);
          String isDefault = attrs.getValue("default");
          split.setMetaData("Default", isDefault);
          return split;
        } else {
          throw new IllegalArgumentException(
          "Unknown gateway direction: " + type);
        }
View Full Code Here

Examples of org.drools.workflow.core.node.Split

  public Class generateNodeFor() {
        return Split.class;
    }

  public void writeNode(Node node, StringBuilder xmlDump, boolean includeMeta) {
    Split split = (Split) node;
    switch (split.getType()) {
      case Split.TYPE_AND:
        writeNode("parallelGateway", node, xmlDump, includeMeta);
        break;
      case Split.TYPE_XOR:
        writeNode("exclusiveGateway", node, xmlDump, includeMeta);
        for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) {
          if (entry.getValue().isDefault()) {
            xmlDump.append("default=\"" +
              XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" +
              XmlBPMNProcessDumper.getUniqueNodeId(node.getNodeContainer().getNode(entry.getKey().getNodeId())) +
              "\" ");
            break;
          }
        }
        break;
      case Split.TYPE_OR:
                writeNode("inclusiveGateway", node, xmlDump, includeMeta);
        for (Map.Entry<ConnectionRef, Constraint> entry: split.getConstraints().entrySet()) {
          if (entry.getValue().isDefault()) {
            xmlDump.append("default=\"" +
              XmlBPMNProcessDumper.getUniqueNodeId(split) + "-" +
              XmlBPMNProcessDumper.getUniqueNodeId(node.getNodeContainer().getNode(entry.getKey().getNodeId())) +
              "\" ");
View Full Code Here

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

        }
        if(!isValid && !fullCheck)
            return;
        Set outTrans = XMLUtil.getOutgoingTransitions(el);
        Set inTrans = XMLUtil.getIncomingTransitions(el);
        Split split = XMLUtil.getSplit(el);
        if((split == null || split.getType().length() == 0) && outTrans.size() > 1)
        {
            isValid = false;
            XMLValidationError verr = new XMLValidationError("ERROR", "LOGIC", "ERROR_MULTIPLE_OUTGOING_TRANSITIONS_WITHOUT_SPLIT_TYPE_DEFINED", "", el);
            existingErrors.add(verr);
        }
View Full Code Here

Examples of org.fusesource.ide.camel.model.generated.Split

        imageProvider.addIconsForClass(new SetFaultBody());
        imageProvider.addIconsForClass(new SetHeader());
        imageProvider.addIconsForClass(new SetOutHeader());
        imageProvider.addIconsForClass(new SetProperty());
        imageProvider.addIconsForClass(new Sort());
        imageProvider.addIconsForClass(new Split());
        imageProvider.addIconsForClass(new Stop());
        imageProvider.addIconsForClass(new Threads());
        imageProvider.addIconsForClass(new Throttle());
        imageProvider.addIconsForClass(new ThrowException());
        imageProvider.addIconsForClass(new Transacted());
View Full Code Here

Examples of org.javasimon.Split

    logger.info("Cache initialization ok");
  }
 
  public void disposeExpired() {
        Stopwatch stopWatch = SimonManager.getStopwatch("detail.disposeExpired");
    Split split = stopWatch.start();
   
    for (Iterator<CacheEntry> iterator = entries.values().iterator(); iterator.hasNext();) {
      CacheEntry entry = iterator.next();
      if (entry.expired()) {
        remove(entry.key);
      }
    }
   
    split.stop();
 
View Full Code Here

Examples of org.javasimon.Split

  public void disposeHeapOverflow() {
    if (entriesLimit == -1) {
      return;
    }
        Stopwatch stopWatch = SimonManager.getStopwatch("detail.disposeHeapOverflow");
    Split split = stopWatch.start();
   
    moveEntriesOffHeap(lruQueue.size() - entriesLimit);

    split.stop();
  }
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.