public int clearAllRequests() {
        
        List<RequestInfo> requests = 
        		commandService.execute(new org.jbpm.shared.services.impl.commands.QueryStringCommand<List<RequestInfo>>("select r from RequestInfo r"));
        
        commandService.execute(new org.jbpm.shared.services.impl.commands.RemoveObjectCommand(requests.toArray()));

        return requests.size();
    }
public int clearAllRequests ( ) { List < RequestInfo > requests = commandService . execute ( new org . jbpm . shared . services . impl . commands . QueryStringCommand < List < RequestInfo > > ( "select r from RequestInfo r" ) ) ; commandService . execute ( new org . jbpm . shared . services . impl . commands . RemoveObjectCommand ( requests . toArray ( ) ) ) ; return requests . size ( ) ; }
{@inheritDoc}