Package org.drools.workflow.instance.node

Examples of org.drools.workflow.instance.node.ForEachNodeInstance$ForEachJoinNodeInstance


                                     subNodeInstance );
              }
              stream.writeShort( PersisterEnums.END );
          } else if ( nodeInstance instanceof ForEachNodeInstance ) {
              stream.writeShort( PersisterEnums.FOR_EACH_NODE_INSTANCE );
              ForEachNodeInstance forEachNodeInstance = (ForEachNodeInstance) nodeInstance;
              List<NodeInstance> nodeInstances = new ArrayList<NodeInstance>( forEachNodeInstance.getNodeInstances() );
              Collections.sort( nodeInstances,
                                new Comparator<NodeInstance>() {
                                    public int compare(NodeInstance o1,
                                                       NodeInstance o2) {
                                        return (int) (o1.getId() - o2.getId());
View Full Code Here


            break;
        case PersisterEnums.COMPOSITE_NODE_INSTANCE :
            nodeInstance = new CompositeContextNodeInstance();
            break;
        case PersisterEnums.FOR_EACH_NODE_INSTANCE :
            nodeInstance = new ForEachNodeInstance();
            break;
        default :
            throw new IllegalArgumentException( "Unknown node type: " + nodeType );
    }
    return nodeInstance;
View Full Code Here

                break;
            case PersisterEnums.COMPOSITE_NODE_INSTANCE :
                nodeInstance = new CompositeContextNodeInstance();
                break;
            case PersisterEnums.FOR_EACH_NODE_INSTANCE :
                nodeInstance = new ForEachNodeInstance();
                break;
            default :
                throw new IllegalArgumentException( "Unknown node type: " + nodeType );
        }
        nodeInstance.setNodeId( nodeId );
View Full Code Here

                                   subNodeInstance );
            }
            stream.writeShort( PersisterEnums.END );
        } else if ( nodeInstance instanceof ForEachNodeInstance ) {
            stream.writeShort( PersisterEnums.FOR_EACH_NODE_INSTANCE );
            ForEachNodeInstance forEachNodeInstance = (ForEachNodeInstance) nodeInstance;
            List<NodeInstance> nodeInstances = new ArrayList<NodeInstance>( forEachNodeInstance.getNodeInstances() );
            Collections.sort( nodeInstances,
                              new Comparator<NodeInstance>() {
                                  public int compare(NodeInstance o1,
                                                     NodeInstance o2) {
                                      return (int) (o1.getId() - o2.getId());
View Full Code Here

                break;
            case PersisterEnums.COMPOSITE_NODE_INSTANCE :
                nodeInstance = new CompositeContextNodeInstance();
                break;
            case PersisterEnums.FOR_EACH_NODE_INSTANCE :
                nodeInstance = new ForEachNodeInstance();
                break;
            default :
                throw new IllegalArgumentException( "Unknown node type: " + nodeType );
        }
        nodeInstance.setNodeId( nodeId );
View Full Code Here

                                   subNodeInstance );
            }
            stream.writeShort( PersisterEnums.END );
        } else if ( nodeInstance instanceof ForEachNodeInstance ) {
            stream.writeShort( PersisterEnums.FOR_EACH_NODE_INSTANCE );
            ForEachNodeInstance forEachNodeInstance = (ForEachNodeInstance) nodeInstance;
            List<NodeInstance> nodeInstances = new ArrayList<NodeInstance>( forEachNodeInstance.getNodeInstances() );
            Collections.sort( nodeInstances,
                              new Comparator<NodeInstance>() {
                                  public int compare(NodeInstance o1,
                                                     NodeInstance o2) {
                                      return (int) (o1.getId() - o2.getId());
View Full Code Here

                }
              }
            }
        } else if (nodeInstance instanceof ForEachNodeInstance) {
            stream.writeShort(PersisterEnums.FOR_EACH_NODE_INSTANCE);
            ForEachNodeInstance forEachNodeInstance = (ForEachNodeInstance) nodeInstance;
            List<NodeInstance> nodeInstances = new ArrayList<NodeInstance>(forEachNodeInstance.getNodeInstances());
            Collections.sort(nodeInstances,
                    new Comparator<NodeInstance>() {
                        public int compare(NodeInstance o1,
                                NodeInstance o2) {
                            return (int) (o1.getId() - o2.getId());
View Full Code Here

                    }
                    ((CompositeContextNodeInstance) nodeInstance).internalSetTimerInstances(timerInstances);
                }
                break;
            case PersisterEnums.FOR_EACH_NODE_INSTANCE:
                nodeInstance = new ForEachNodeInstance();
                break;
            case PersisterEnums.DYNAMIC_NODE_INSTANCE:
                nodeInstance = new DynamicNodeInstance();
                nbTimerInstances = stream.readInt();
                if (nbTimerInstances > 0) {
View Full Code Here

                }
              }
            }
        } else if (nodeInstance instanceof ForEachNodeInstance) {
            stream.writeShort(PersisterEnums.FOR_EACH_NODE_INSTANCE);
            ForEachNodeInstance forEachNodeInstance = (ForEachNodeInstance) nodeInstance;
            List<NodeInstance> nodeInstances = new ArrayList<NodeInstance>(forEachNodeInstance.getNodeInstances());
            Collections.sort(nodeInstances,
                    new Comparator<NodeInstance>() {
                        public int compare(NodeInstance o1,
                                NodeInstance o2) {
                            return (int) (o1.getId() - o2.getId());
View Full Code Here

                    }
                    ((CompositeContextNodeInstance) nodeInstance).internalSetTimerInstances(timerInstances);
                }
                break;
            case PersisterEnums.FOR_EACH_NODE_INSTANCE:
                nodeInstance = new ForEachNodeInstance();
                break;
            case PersisterEnums.DYNAMIC_NODE_INSTANCE:
                nodeInstance = new DynamicNodeInstance();
                nbTimerInstances = stream.readInt();
                if (nbTimerInstances > 0) {
View Full Code Here

TOP

Related Classes of org.drools.workflow.instance.node.ForEachNodeInstance$ForEachJoinNodeInstance

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.