[jboss-jira] [JBoss JIRA] (JBRULES-3235) Fact Handle not found when using multiple entry points

Edson Tirelli (Closed) (JIRA) jira-events at lists.jboss.org
Wed Oct 5 16:54:17 EDT 2011


     [ https://issues.jboss.org/browse/JBRULES-3235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Edson Tirelli closed JBRULES-3235.
----------------------------------


    
> Fact Handle not found when using multiple entry points
> ------------------------------------------------------
>
>                 Key: JBRULES-3235
>                 URL: https://issues.jboss.org/browse/JBRULES-3235
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler, drools-core
>    Affects Versions: 5.3.0.CR1
>            Reporter: Edson Tirelli
>            Assignee: Edson Tirelli
>             Fix For: 5.3.0.Final
>
>
> Drools if failing to find the source entry point of a fact when multiple entry points are used with the java dialect. From Mark:
> [16:16] mdproctor: go to DialectUtil fixBlockDescr
> [16:17] mdproctor: we "fix" modofies here
> [16:20] mdproctor:            if ( declr == null || declr.isInternalFact() ) {
>               consequence.append( "org.drools.FactHandle " );
>               consequence.append( obj );
>               consequence.append( "__Handle2__ = drools.getFactHandle(" );
>               consequence.append( obj );
>               consequence.append( ");" );
>           }
> [16:20] mdproctor: that is where an object is not already bound in a modify statement
> [16:20] mdproctor: notice it calls drools.getFactHanle
> [16:20] mdproctor: that then calls your method
> [16:20] mdproctor: getFactHandleFromWM
> [16:21] mdproctor: that for loop then neets to be
> [16:21] mdproctor:             for ( WorkingMemoryEntryPoint ep : workingMemory.getEntryPoints().values() ) {
>                handle = (FactHandle) ep.getFactHandle( object );
>                if ( handle != null ) {
>                    if ( identityMap != null ) {
>                        identityMap.put( object,
>                                         handle );
>                    }
>                }
>                break;
>            }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list