org.kuali.rice.kew.rule
Class KRAMetaRuleEngine

java.lang.Object
  extended by org.kuali.rice.kew.rule.KRAMetaRuleEngine

public class KRAMetaRuleEngine
extends Object

Implements the KRA meta-rule processing and state machine engine

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
KRAMetaRuleEngine(String expression)
           
 
Method Summary
 int getCurStatement()
           
 String getExpression()
           
 String[] getStatements()
           
 boolean isDone()
           
 RuleExpressionResult processSingleStatement(RouteContext context)
          Processes a single statement and returns the result
 void setCurStatement(int statementNo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KRAMetaRuleEngine

public KRAMetaRuleEngine(String expression)
                  throws ParseException
Throws:
ParseException
Method Detail

getExpression

public String getExpression()
Returns:
the expression the engine was initialized with

getStatements

public String[] getStatements()
Returns:
the parsed statements

getCurStatement

public int getCurStatement()
Returns:
the next statement the engine will process

setCurStatement

public void setCurStatement(int statementNo)
Parameters:
statementNo - the statement index at which to resume processing

isDone

public boolean isDone()
Returns:
whether we are done processing

processSingleStatement

public RuleExpressionResult processSingleStatement(RouteContext context)
                                            throws ParseException
Processes a single statement and returns the result

Parameters:
context - the current RouteContext
Returns:
the expression result that resulted from the evaluation of a single statement
Throws:
ParseException - if the statement could not be parsed


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.