Package org.drools.reteoo

Examples of org.drools.reteoo.RuleTerminalNode.createLeftTuple()


                boolean breaking = false;
                ConditionalExecution conditionalExecution = branchEvaluator.evaluate( leftTuple, wm, cbm.context );

                if ( conditionalExecution != null ) {
                    RuleTerminalNode rtn = ( RuleTerminalNode ) conditionalExecution.getSink().getFirstLeftTupleSink();
                    LeftTuple branchedLeftTuple = rtn.createLeftTuple( leftTuple, 
                                                                       rtn,
                                                                       tupleMemoryEnabled );
                   
                    leftTuple.setObject( branchedLeftTuple );
                   
View Full Code Here


                       
                    } else {
                        // old and new on different branches, delete one and insert the other                               
                        oldRtn.retractLeftTuple( rtnLeftTuple, rtnLeftTuple.getPropagationContext(), wm );
                       
                        rtnLeftTuple = newRtn.createLeftTuple( leftTuple, 
                                                               newRtn,
                                                               tupleMemoryEnabled );
                       
                        leftTuple.setObject( rtnLeftTuple );                       
                        newRtn.assertLeftTuple( rtnLeftTuple, rtnLeftTuple.getPropagationContext(), wm );                       
View Full Code Here

                        newRtn.assertLeftTuple( rtnLeftTuple, rtnLeftTuple.getPropagationContext(), wm );                       
                    }

                } else if ( newRtn != null) {
                    // old does not exist, new exists, so insert
                    rtnLeftTuple = newRtn.createLeftTuple( leftTuple, 
                                                           newRtn,
                                                           tupleMemoryEnabled );
                   
                    leftTuple.setObject( rtnLeftTuple );                       
                    newRtn.assertLeftTuple( rtnLeftTuple, rtnLeftTuple.getPropagationContext(), wm );                   
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.