[
https://issues.jboss.org/browse/DROOLS-479?page=com.atlassian.jira.plugin...
]
Richard Ambridge commented on DROOLS-479:
-----------------------------------------
Thanks for the update.
I don't understand why the first part of the test works, but not the second?
First template is 'if cheese=smelly and no cheese=a after 3 seconds.
Then cheese=smelly is inserted, clock advanced 10 seconds.. template fires.
Second template is 'if cheese=stinky and no cheese=a after 3 seconds and no cheese=b
after 5 seconds.
Then cheese=stinky is inserted, clock advanced 10 seconds.. no template.
If the first insert is skipped, (e.g comment out lines 109-120) then the second template
seems to work fine.
The 'fireUntilHalt' is run in the thread, and it should start before any inserts.
This does work in 'real time', but the issue is that this is a simplified test
case from our development. The real gap in events could be 48 hours, and we can't
easily wait that long in junit tests.
Thanks for looking at this.
Pseudo Clock doesn't work for 2 not statements
----------------------------------------------
Key: DROOLS-479
URL:
https://issues.jboss.org/browse/DROOLS-479
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 6.0.1.Final, 6.1.0.Beta3
Environment: linux 14.04
Reporter: Richard Ambridge
Assignee: Mark Proctor
Labels: pseudoclock
If a rule (event) has the following:
+ "when\n"
+ " $s : Cheese(type==\"stinky\")\n"
+ " not( Cheese(type==\"a\", this after [0s,3s] $s )
)\n"
+ " not( Cheese(type==\"b\", this after [0s,5s] $s )
)\n" //2 * not
and pseudo clock is used, the rule doesn't fire.
If realtime clock is used, the rule works.
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)