Clone
Luca Molteni <volothamp@gmail.com>
committed
on 31 Oct 18
[DROOLS-2989] Avoid refire of rules with synthetic Fact Handles (#2106)
* Added test for deserialization

* Test for simple alpha node in Ma… Show more
[DROOLS-2989] Avoid refire of rules with synthetic Fact Handles (#2106)

* Added test for deserialization

* Test for simple alpha node in MarshallerTest.java

* private node memories, add synthetic facts' object to a map in the agenda

* Proto syntax

* Regenerated protobuf messages

* Add object during serialization

* Added object to FromNodeMemory

* Need an index to serialize the object

* Added index to object serialization

* Read node memories object

* Avoid refire marshalled FactHandle

* Use old mechanism to avoid refiring in node != FromNode

* New test for unfired tuples

* Serialize dormant objecgt

* NodeId

* Match against object

* Dormient objects are already serialized

* Correct matching of objects

* Nullcheck

* Refactor

* Fix regression

* Removed useless code

* Removed dead code

* Fix regression

* Accumulate test

* Rebase

* RenamedTest

* New test for accumulate

* New test for RIAN

* new test

* JavaSerializableResolverStrategy

* Use java serialization encoder

* Changed testSubnetwork test

* Better test

* New test for subnetworks

* New test for subnetwork

* Do not serialize test

* ProtobufInputMarshaller returns the message along with the session

* testAgendaDoNotSerializeObject check if no objects are serialized

* Avoid deserializing if empty

* Serialize object only with FromNode

* Serialize object only with AccumulateNode

* Disposal of ksession

* Removed unnecessary code in ProtobufTestMarshaller

* Fix regression in test

* Removed assertion on demarshalling

* Explicit class loader

* Removed println

Show less

master + 6 more