Permalink
Browse files

[JBRULES-3402] fix variable expressions in interval-based timer with …

…delay and no period
  • Loading branch information...
1 parent 303829e commit a5d237aba0b18d87a69f9b5dd8c32c45de4664a3 @mariofusco mariofusco committed May 8, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 drools-compiler/src/main/java/org/drools/rule/builder/RuleBuilder.java
@@ -382,6 +382,8 @@ private void buildTimer(Rule rule, String timerString, RuleBuildContext context)
MVELObjectExpression period = null;
if ( tok.hasMoreTokens() ) {
period = MVELObjectExpressionBuilder.build( tok.nextToken().trim(), context );
+ } else {
+ period = MVELObjectExpressionBuilder.build( "0", context );
}
timer = new ExpressionIntervalTimer( startDate, endDate, repeatLimit, times, period );

0 comments on commit a5d237a

Please sign in to comment.