this.engine = engine;  taskIDString = "Task" + new Integer( taskID ).toString( );  locale = Locale.getDefault( );  if ( engine != null ) { scriptContext = new ScriptContext( engine.getRootScope( ) ); } else { scriptContext = new ScriptContext( ); }  initailizeScriptContext( scriptContext.getContext( ), scriptContext .getRootScope( ) );    scriptContext.registerBean( "report", new ReportObject( ) ); scriptContext.registerBean( "params", params ); scriptContext.registerBean( "config", configs ); scriptContext.registerBean( "currentPage", new Integer( currentPage ) ); scriptContext.registerBean( "totalPage", new Integer( totalPage ) );
this( null, taskID );
	public ExecutionContext( ReportEngine engine, int taskID )	{		this.engine = engine;		taskIDString = "Task" + new Integer( taskID ).toString( ); //$NON-NLS-1$		locale = Locale.getDefault( );		if ( engine != null )		{			scriptContext = new ScriptContext( engine.getRootScope( ) );		}		else		{			scriptContext = new ScriptContext( );		}		initailizeScriptContext( scriptContext.getContext( ), scriptContext				.getRootScope( ) );		// create script context used to execute the script statements		// register the global variables in the script context		scriptContext.registerBean( "report", new ReportObject( ) );		scriptContext.registerBean( "params", params ); //$NON-NLS-1$		scriptContext.registerBean( "config", configs ); //$NON-NLS-1$		scriptContext.registerBean( "currentPage", new Integer( currentPage ) );		scriptContext.registerBean( "totalPage", new Integer( totalPage ) );	}