Class DisconnectedWorkingMemoryEntryPoint

    • Constructor Detail

      • DisconnectedWorkingMemoryEntryPoint

        public DisconnectedWorkingMemoryEntryPoint​(String id)
    • Method Detail

      • getEntryPointId

        public String getEntryPointId()
        Specified by:
        getEntryPointId in interface org.kie.api.runtime.rule.EntryPoint
      • getFactCount

        public long getFactCount()
        Specified by:
        getFactCount in interface org.kie.api.runtime.rule.EntryPoint
      • getFactHandle

        public org.kie.api.runtime.rule.FactHandle getFactHandle​(Object object)
        Specified by:
        getFactHandle in interface org.kie.api.runtime.rule.EntryPoint
      • getFactHandles

        public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles()
        Specified by:
        getFactHandles in interface org.kie.api.runtime.rule.EntryPoint
      • getFactHandles

        public <T extends org.kie.api.runtime.rule.FactHandle> Collection<T> getFactHandles​(org.kie.api.runtime.ObjectFilter filter)
        Specified by:
        getFactHandles in interface org.kie.api.runtime.rule.EntryPoint
      • getObject

        public Object getObject​(org.kie.api.runtime.rule.FactHandle factHandle)
        Specified by:
        getObject in interface org.kie.api.runtime.rule.EntryPoint
      • getObjects

        public Collection<? extends Object> getObjects()
        Specified by:
        getObjects in interface org.kie.api.runtime.rule.EntryPoint
      • getObjects

        public Collection<? extends Object> getObjects​(org.kie.api.runtime.ObjectFilter filter)
        Specified by:
        getObjects in interface org.kie.api.runtime.rule.EntryPoint
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(Object object)
        Specified by:
        insert in interface org.kie.api.runtime.rule.EntryPoint
      • insert

        public org.kie.api.runtime.rule.FactHandle insert​(Object object,
                                                          boolean dynamic)
        Description copied from interface: WorkingMemoryEntryPoint
        Insert a fact registering JavaBean PropertyChangeListeners on the Object to automatically trigger update calls if dynamic is true.
        Specified by:
        insert in interface WorkingMemoryEntryPoint
        Parameters:
        object - The fact object.
        dynamic - true if Drools should add JavaBean PropertyChangeListeners to the object.
        Returns:
        The new fact-handle associated with the object.
      • retract

        public void retract​(org.kie.api.runtime.rule.FactHandle handle)
        Specified by:
        retract in interface org.kie.api.runtime.rule.EntryPoint
      • delete

        public void delete​(org.kie.api.runtime.rule.FactHandle handle)
        Specified by:
        delete in interface org.kie.api.runtime.rule.EntryPoint
      • delete

        public void delete​(org.kie.api.runtime.rule.FactHandle handle,
                           org.kie.api.runtime.rule.FactHandle.State fhState)
        Specified by:
        delete in interface org.kie.api.runtime.rule.EntryPoint
      • update

        public void update​(org.kie.api.runtime.rule.FactHandle handle,
                           Object object)
        Specified by:
        update in interface org.kie.api.runtime.rule.EntryPoint
      • update

        public void update​(org.kie.api.runtime.rule.FactHandle handle,
                           Object object,
                           String... modifiedProperties)
        Specified by:
        update in interface org.kie.api.runtime.rule.EntryPoint
      • dispose

        public void dispose()
        Description copied from interface: WorkingMemoryEntryPoint
        Internal method called by the engine when the session is being disposed, so that the entry point can proceed with the necessary clean ups.
        Specified by:
        dispose in interface WorkingMemoryEntryPoint