Package org.drools.core.rule

Examples of org.drools.core.rule.SingleAccumulate


        if (accumDescr.isMultiFunction()) {
            return new MultiAccumulate( source,
                                        requiredDecl.toArray(new Declaration[requiredDecl.size()]),
                                        accumulators );
        } else {
            return new SingleAccumulate( source,
                                         requiredDecl.toArray(new Declaration[requiredDecl.size()]),
                                         accumulators[0] );
        }
    }
View Full Code Here


        }

        map.put( "hashCode",
                actionCode.hashCode());

        SingleAccumulate accumulate = new SingleAccumulate(source, declarations);

        generateTemplates("accumulateInnerClass",
                "accumulateInvoker",
                context,
                className,
View Full Code Here

                                                                       resultBetaConstraints,
                                                                       true );

        CollectAccumulator accumulator = new CollectAccumulator( collect,
                                                                 existSubNetwort );
        Accumulate accumulate = new SingleAccumulate( sourcePattern,
                                                      sourcePattern.getRequiredDeclarations(),
                                                      accumulator );

        AccumulateNode accNode = context.getComponentFactory().getNodeFactoryService().buildAccumulateNode( context.getNextId(),
                                                                                                            context.getTupleSource(),
View Full Code Here

                    data.addCompileable( ((MultiAccumulate)accumulate).new Wirer( index++ ),
                                         (MVELCompileable) accumulator );
                    ((MVELCompileable) accumulator).compile( data );
                }
            } else {
                accumulate = new SingleAccumulate( source,
                                                   null,
                                                   accumulators[0] );
                    data.addCompileable( ((SingleAccumulate)accumulate).new Wirer( ),
                                         (MVELCompileable) accumulators[0] );
                    ((MVELCompileable) accumulators[0]).compile( data );
View Full Code Here

            Accumulator accumulator = new MVELAccumulatorFunctionExecutor( compilationUnit,
                                                                           accFunction );
            ((MVELCompileable) accumulator).compile( data );

            Accumulate accumulate = new SingleAccumulate( sourcePattern,
                                                          new Declaration[]{}, // required declaration
                                                          accumulator );
            AccumulateNode accNode = new AccumulateNode( buildContext.getNextId(),
                                                         leftTupleSource,
                                                         rightObjectSource,
View Full Code Here

        this.accumulator = new MockAccumulator();

        final ObjectType srcObjType = new ClassObjectType(String.class);
        final Pattern sourcePattern = new Pattern(0,
                                                  srcObjType);
        this.accumulate = new SingleAccumulate( sourcePattern,
                                                new Declaration[0],
                                                this.accumulator );

        this.node = new AccumulateNode(15,
                                       this.tupleSource,
View Full Code Here

TOP

Related Classes of org.drools.core.rule.SingleAccumulate

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.