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/QueryExecutor.java
*/
	abstract protected IResultIterator executeOdiQuery(
			IEventHandler eventHandler ) throws DataException;
		
	/**
	 * @param context
	 */
	void setAppContext( Map context )
	{
	    queryAppContext = context;
	}
	
	/**
	 * Prepare Executor so that it is ready to execute the query
	 * 
	 * @param outerRts
	 * @param targetScope
	 * @throws DataException
	 */
	void prepareExecution( IQueryResults outerRts, Scriptable targetScope ) throws DataException
	{
		if(isPrepared)return;
		
		this.parentScope = targetScope;
		dataSource = findDataSource( );
		if ( outerRts != null )
		{
			outerResults = ((QueryResults) outerRts );
			if ( outerResults.isClosed( ) )
			{