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/EngineTask.java
}
	}
	/* (non-Javadoc)
	 * @see org.eclipse.birt.report.engine.api.IEngineTask#cancel()
	 */
	public void cancel( )
	{
		cancelFlag = true;
		executionContext.cancel( );
	}
	
	public void cancel(Object signal)
	{
		if ( signal == null )
		{
			throw new IllegalArgumentException( "signal can't be null" );
		}
		cancelFlag = true;
		long waitingTime = 0;
		do
		{
			waitingTime += 100;
			try
			{
				Thread.sleep( 100 );
			}
			catch ( Exception ex )
			{
			}
			if ( runningStatus != RUNNING_STATUS_RUNNING )