Oprand[] op = this.operation.getOprand( ); String taskid = null; if ( op != null ) { for ( int i = 0; i < op.length; i++ ) { String paramName = op[i].getName( ); String paramValue = op[i].getValue( );  if ( IBirtConstants.OPRAND_TASKID.equalsIgnoreCase( paramName ) ) { taskid = paramValue; break; } } }  if ( taskid == null ) return;   HttpSession session = context.getRequest( ).getSession( ); if ( session == null ) return;  Map map = (Map) session.getAttribute( IBirtConstants.TASK_MAP ); if ( map != null && map.containsKey( taskid ) ) {  IEngineTask task = (IEngineTask) map.get( taskid ); if ( task != null ) { task.cancel( ); }   synchronized ( map ) { map.remove( taskid ); } }
BirtUtility.cancelTask( context.getRequest( ), attrBean.getTaskId( ) );
	protected void __execute( ) throws Exception	{		ViewerAttributeBean attrBean = (ViewerAttributeBean) context.getBean( );		assert attrBean != null;		// get task id		Oprand[] op = this.operation.getOprand( );		String taskid = null;		if ( op != null )		{			for ( int i = 0; i < op.length; i++ )			{				String paramName = op[i].getName( );				String paramValue = op[i].getValue( );				if ( IBirtConstants.OPRAND_TASKID.equalsIgnoreCase( paramName ) )				{					taskid = paramValue;					break;				}			}		}		if ( taskid == null )			return;		// get task map		HttpSession session = context.getRequest( ).getSession( );		if ( session == null )			return;		Map map = (Map) session.getAttribute( IBirtConstants.TASK_MAP );		if ( map != null && map.containsKey( taskid ) )		{			// cancel task			IEngineTask task = (IEngineTask) map.get( taskid );			if ( task != null )			{				task.cancel( );			}			// remove task from task map			synchronized ( map )			{				map.remove( taskid );			}		}		handleUpdate( );	}