Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3235

Fact Handle not found when using multiple entry points

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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;
      }

            etirelli@redhat.com Edson Tirelli
            etirelli@redhat.com Edson Tirelli
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: