Bug 178164 Use IEngineTask.status constants and remove unnecessary status variables in EngineTask.
1)Remove following redundant variables in EngineTask used for status info. protected final int RUNNING_STATUS_START = 0; protected final int RUNNING_STATUS_RUNNING = 1; protected final int RUNNING_STATUS_STOP = 2; EngineTask already has access to constants declared in IEngineTask. Use those instead. 2)Remove the unused errorHandlingOption in EngineTask.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunAndRenderTask.java
ReportExecutor executor = new ReportExecutor( executionContext,
					reportDesign, null );
			IReportExecutor lExecutor = new LocalizedReportExecutor(
					executionContext, executor );
			executionContext.setExecutor( executor );
			initializeContentEmitter( emitter, executor );
			
			if ( ExtensionManager.NO_PAGINATION.equals( pagination ))
			{
				HTMLTableLayoutNestEmitter tableLayoutEmitter = new HTMLTableLayoutNestEmitter(
						emitter );
				lExecutor.execute( reportDesign.getReportDesign( ),
						tableLayoutEmitter );
			}
			else
			{
				String format = executionContext.getOutputFormat( );
				boolean paginate = true;
				if ( FORMAT_HTML.equalsIgnoreCase( format ) ) 
				{
					if ( renderOptions instanceof HTMLRenderOption )
					{
						HTMLRenderOption htmlOption = (HTMLRenderOption) renderOptions;
						paginate = htmlOption.getHtmlPagination( );
					}
				}
				synchronized ( this )
				{
					if ( !executionContext.isCanceled( ) )
					{