[rules-users] Wait state constriant

Wolfgang Laun wolfgang.laun at gmail.com
Thu Jul 22 10:01:18 EDT 2010


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 at 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-tp986768p986768.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list