public void attach(BuildContext context) {
        this.source.addObjectSink(this);

        Class<?> nodeTypeClass = objectType.getClassType();
        if (nodeTypeClass == null) {
            return;
        }

        EntryPointNode epn = context.getKnowledgeBase().getRete().getEntryPointNode( ((EntryPointNode) source).getEntryPoint() );
        if (epn == null) {
            return;
        }

        ObjectTypeConf objectTypeConf = epn.getTypeConfReg().getObjectTypeConfByClass( nodeTypeClass );
        if ( objectTypeConf != null ) {
            objectTypeConf.resetCache();
        }
    }
public void attach ( BuildContext context ) { this . source . addObjectSink ( this ) ; Class < ? > nodeTypeClass = objectType . getClassType ( ) ; if ( nodeTypeClass == null ) { return ; } EntryPointNode epn = context . getKnowledgeBase ( ) . getRete ( ) . getEntryPointNode ( ( ( EntryPointNode ) source ) . getEntryPoint ( ) ) ; if ( epn == null ) { return ; } ObjectTypeConf objectTypeConf = epn . getTypeConfReg ( ) . getObjectTypeConfByClass ( nodeTypeClass ) ; if ( objectTypeConf != null ) { objectTypeConf . resetCache ( ) ; } }
Rete needs to know that this ObjectTypeNode has been added