Bug 131011 Support running query based on report document data
Data Engine should support running a query based on data set and expression data stored in a report document. This bugzilla entry serves as a repository for design docs and notes related to this feature.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ResultIterator.java
{
	protected org.eclipse.birt.data.engine.odi.IResultIterator odiResult;
	protected Scriptable scope;
	
	protected static final int NOT_STARTED = 0;
	protected static final int BEFORE_FIRST_ROW = 1;
	protected static final int ON_ROW = 2;
	protected static final int AFTER_LAST_ROW = 3;
	protected static final int CLOSED = -1;
	
	protected int state = NOT_STARTED;
	
	protected boolean useDetails;
	protected int lowestGroupLevel;
	private int savedStartingGroupLevel;
	
	private DataEngineContext context;
	private RDSaveUtil rdSaveUtil;