.createProcessInstanceQuery();
OrderBy orderBy = page.getOrderBy();
if( orderBy != null ){
if( "businessKey".equals(orderBy.getProperty()) )
query.orderByProcessDefinitionKey();
else if( "processDefinitionId".equals(orderBy.getProperty()) )
query.orderByProcessDefinitionId();
else if( "processInstanceId".equals(orderBy.getProperty()) )
query.orderByProcessInstanceId();
}