The line "System...3000)" isn't a constraint - it is a boolean expression.
Whether it is correct or not depends on its surroundings.
Syntax aside, note that using a method call that's not time-invariant
is unlikely to produce correct results.
-W
On 22 July 2010 13:31, retoy <reto.lamprecht(a)allianz-suisse.ch> wrote:
Can anyone tell me what's wrong with this wait state constraint?
System.currentTimeMillis() >= (startWait + 3000)
The exception I'm getting ist:
[5,33]: [ERR 102] Line 5:33 mismatched input '>=' expecting 'then' in
rule
"RuleFlow-Milestone-drools.test.timer-6"
but I don't think that is really getting to the heart of the problem...
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Wait-state-constriant...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users