Examples of ExpressionIntervalTimer


Examples of org.drools.time.impl.ExpressionIntervalTimer

            }
            Arrays.sort( this.enabledDeclarations, SortDeclarations.instance );             
        }       
       
        if ( rule.getTimer() instanceof ExpressionIntervalTimer ) {
            ExpressionIntervalTimer expr = ( ExpressionIntervalTimer ) rule.getTimer();
           
            Declaration[] declrs = expr.getDelayMVELCompilationUnit().getPreviousDeclarations();           
            this.timerDelayDeclarations = new Declaration[declrs.length];
            int i = 0;
            for ( Declaration declr : declrs ) {
                this.timerDelayDeclarations[i++] = decls.get( declr.getIdentifier() );
            }
            Arrays.sort( this.timerDelayDeclarations, SortDeclarations.instance );     
           
            declrs = expr.getPeriodMVELCompilationUnit().getPreviousDeclarations();           
            this.timerPeriodDeclarations = new Declaration[declrs.length];
            i = 0;
            for ( Declaration declr : declrs ) {
                this.timerPeriodDeclarations[i++] = decls.get( declr.getIdentifier() );
            }
View Full Code Here

Examples of org.drools.time.impl.ExpressionIntervalTimer

            }
            Arrays.sort( this.enabledDeclarations, SortDeclarations.instance );             
        }       
       
        if ( rule.getTimer() instanceof ExpressionIntervalTimer ) {
            ExpressionIntervalTimer expr = ( ExpressionIntervalTimer ) rule.getTimer();
           
            Declaration[] declrs = expr.getDelayMVELCompilationUnit().getPreviousDeclarations();           
            this.timerDelayDeclarations = new Declaration[declrs.length];
            int i = 0;
            for ( Declaration declr : declrs ) {
                this.timerDelayDeclarations[i++] = decls.get( declr.getIdentifier() );
            }
            Arrays.sort( this.timerDelayDeclarations, SortDeclarations.instance );     
           
            declrs = expr.getPeriodMVELCompilationUnit().getPreviousDeclarations();           
            this.timerPeriodDeclarations = new Declaration[declrs.length];
            i = 0;
            for ( Declaration declr : declrs ) {
                this.timerPeriodDeclarations[i++] = decls.get( declr.getIdentifier() );
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.