Examples of unlinkFromRightParent()


Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

                        LeftTuple child;
                        while ((child = leftTuple.getFirstChild()) != null) {
                            if (child.getLeftTupleSink() == betaNode) {
                                // this is a match tuple on collect and accumulate nodes, so just unlink it
                                child.unlinkFromLeftParent();
                                child.unlinkFromRightParent();
                            } else {
                                // the cleanupAdapter will take care of the unlinking
                                context.getCleanupAdapter().cleanUp(child, workingMemory);
                            }
                        }
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

                for (RightTuple current = rightTuple; current != null; current = (RightTuple) rightIt.next(current)) {
                    LeftTuple childLeftTuple = current.getFirstChild();
                    if (childLeftTuple != null) {
                        // childLeftTuple is null, if the constraints in the 'from' pattern fail
                        childLeftTuple.unlinkFromLeftParent();
                        childLeftTuple.unlinkFromRightParent();

                        switch (childLeftTuple.getStagedType()) {
                            // handle clash with already staged entries
                            case LeftTuple.INSERT:
                                stagedLeftTuples.removeInsert(childLeftTuple);
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

                        LeftTuple child;
                        while ((child = leftTuple.getFirstChild()) != null) {
                            if (child.getLeftTupleSink() == betaNode) {
                                // this is a match tuple on collect and accumulate nodes, so just unlink it
                                child.unlinkFromLeftParent();
                                child.unlinkFromRightParent();
                            } else {
                                // the cleanupAdapter will take care of the unlinking
                                context.getCleanupAdapter().cleanUp(child, workingMemory);
                            }
                        }
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

                        LeftTuple child;
                        while ((child = leftTuple.getFirstChild()) != null) {
                            if (child.getLeftTupleSink() == betaNode) {
                                // this is a match tuple on collect and accumulate nodes, so just unlink it
                                child.unlinkFromLeftParent();
                                child.unlinkFromRightParent();
                            } else {
                                // the cleanupAdapter will take care of the unlinking
                                context.getCleanupAdapter().cleanUp(child, workingMemory);
                            }
                        }
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

        if ( bm.getRightTupleMemory().size() > 0 ) {
            final Iterator it = bm.getRightTupleMemory().iterator();
            for ( RightTuple entry = (RightTuple) it.next(); entry != null; entry = (RightTuple) it.next() ) {
                LeftTuple leftTuple = (LeftTuple) entry.getFactHandle().getObject();
                leftTuple.unlinkFromLeftParent();
                leftTuple.unlinkFromRightParent();
            }
        }
        workingMemory.clearNodeMemory( this );
    }
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

                        LeftTuple child;
                        while ((child = leftTuple.getFirstChild()) != null) {
                            if (child.getLeftTupleSink() == betaNode) {
                                // this is a match tuple on collect and accumulate nodes, so just unlink it
                                child.unlinkFromLeftParent();
                                child.unlinkFromRightParent();
                            } else {
                                // the cleanupAdapter will take care of the unlinking
                                context.getCleanupAdapter().cleanUp(child, workingMemory);
                            }
                        }
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

                        LeftTuple child;
                        while ((child = leftTuple.getFirstChild()) != null) {
                            if (child.getLeftTupleSink() == betaNode) {
                                // this is a match tuple on collect and accumulate nodes, so just unlink it
                                child.unlinkFromLeftParent();
                                child.unlinkFromRightParent();
                            } else {
                                // the cleanupAdapter will take care of the unlinking
                                context.getCleanupAdapter().cleanUp(child, workingMemory);
                            }
                        }
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

            for (RightTuple rightTuple : previousMatches.values()) {
                for (RightTuple current = rightTuple; current != null; current = (RightTuple) rightIt.next(current)) {
                    LeftTuple childLeftTuple = current.getFirstChild();
                    childLeftTuple.unlinkFromLeftParent();
                    childLeftTuple.unlinkFromRightParent();

                    switch (childLeftTuple.getStagedType()) {
                        // handle clash with already staged entries
                        case LeftTuple.INSERT:
                            stagedLeftTuples.removeInsert(childLeftTuple);
View Full Code Here

Examples of org.drools.core.reteoo.LeftTuple.unlinkFromRightParent()

                for (RightTuple current = rightTuple; current != null; current = (RightTuple) rightIt.next(current)) {
                    LeftTuple childLeftTuple = current.getFirstChild();
                    if (childLeftTuple != null) {
                        // childLeftTuple is null, if the constraints in the 'from' pattern fail
                        childLeftTuple.unlinkFromLeftParent();
                        childLeftTuple.unlinkFromRightParent();

                        switch (childLeftTuple.getStagedType()) {
                            // handle clash with already staged entries
                            case LeftTuple.INSERT:
                                stagedLeftTuples.removeInsert(childLeftTuple);
View Full Code Here

Examples of org.drools.reteoo.LeftTuple.unlinkFromRightParent()

                for ( RightTuple rightTuple : previousMatches.values() ) {
                    for ( RightTuple current = rightTuple; current != null; current = (RightTuple) rightIt.next( current ) ) {
                        LeftTuple childLeftTuple = current.getFirstChild();
                        childLeftTuple.unlinkFromLeftParent();
                        childLeftTuple.unlinkFromRightParent();
                       
                        switch ( childLeftTuple.getStagedType() ) {
                            // handle clash with already staged entries
                            case LeftTuple.INSERT :
                                stagedLeftTuples.removeInsert( childLeftTuple );
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.