-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
None
If an event type (i.e. an instance of a class marked with @role(event)) is returned by a "from" node, it is not wrapped by an EventFactHandle as expected, so e.g. any attempt to use temporal operators will fail.
See the test case below for an example
The problem is in FromNode.java around line 200, where the new handles are created without passing an ObjectTypeConfiguration, leading to the default creation of a DefaultFactHandle.
I wonder if it's possible to simply retrieve the ObjectTypeConf:
workingMemory.getObjectTypeConfigurationRegistry().getObjectTypeConf( context.getEntryPoint(), object )
and pass it to the handle factory method.
I tested it and it works for the test case below, but there may be other
side-effects I'm not seeing.
---------------------------------------------------------------------------
May be related (but not the same as) #JBRULES-2423