[
https://jira.jboss.org/jira/browse/JBESB-2887?page=com.atlassian.jira.plu...
]
Jaroslaw Kijanowski commented on JBESB-2887:
--------------------------------------------
Attaching updated QS (cep2.zip).
output with 4.4 CP3:
+++++++++++++++++++++++++++++++++++
13:23:06,426 INFO [STDOUT] Let's fire some rules
13:23:09,919 INFO [STDOUT] SI = 0.0; S = 10.0
13:23:09,923 INFO [STDOUT] Let's fire some rules
13:23:09,923 WARN [ObjectMapper] The value of body.TheSensorInfo is null
13:23:09,924 INFO [STDOUT] SI = 0.0; S = 15.0
13:23:09,928 INFO [STDOUT] Let's fire some rules
13:23:09,928 WARN [ObjectMapper] The value of body.TheSensorInfo is null
13:23:09,929 INFO [STDOUT] SI = 0.0; S = 20.0
+++++++++++++++++++++++++++++++++++
Rules fired 3 times, since the SensorInfo object was in the rule session.
In trunk (see below), this object is retracted I guess, hence the rule fired only the
first time, when I have explicitly inserted the SensorInfo object.
Received:
+++++++++++++++++++++++++++++++++++
19:12:29,439 INFO [STDOUT] Let's fire some rules
19:12:34,861 INFO [STDOUT] SI = 0.0; S = 10.0
19:12:34,866 INFO [STDOUT] Let's fire some rules
19:12:34,867 WARN [ObjectMapper] The value of body.TheSensorInfo is null
19:12:34,908 INFO [STDOUT] Let's fire some rules
19:12:34,908 WARN [ObjectMapper] The value of body.TheSensorInfo is null
+++++++++++++++++++++++++++++++++++
facts retracted from session when in stateful mode
--------------------------------------------------
Key: JBESB-2887
URL:
https://jira.jboss.org/jira/browse/JBESB-2887
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.6
Environment: trunk rev 29538
Reporter: Jaroslaw Kijanowski
Attachments: cep.zip
I have a simple rule:
when
$si:SensorInfo($id:id) from entry-point "SensorEntryPoint"
$s:Sensor(id == $id) from entry-point "SensorEntryPoint"
then
System.out.println("SI = "+$si.getAvg()+"; S = "+$s.getValue());
end
The BRP is configured in stateful mode.
The first message is sent. This sets 'dispose' and 'continue' to false
and adds 2 objects (Sensor and SensorInfo) to the body.
Rule fire.
The second message is sent. This sets 'dispose' to false and 'continue'
to true and adds 1 object (Sensor) to the body.
Rule does not fire, but should.
The third message is sent. This sets 'dispose' and 'continue' to true and
adds 1 object (Sensor) to the body.
Rule does not fire, but should.
It looks like the SensorInfo object has been removed from the session, hence the rule did
not fire.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira