Skip to content

Commit

Permalink
[JBRULES-3402] fix variable expressions in interval-based timer with …
Browse files Browse the repository at this point in the history
…delay and no period
  • Loading branch information
mariofusco committed May 8, 2012
1 parent 303829e commit a5d237a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit a5d237a

Please sign in to comment.