XmlRpcWorkflowManagerClient client = getClient();
WorkflowInstancePage page = null;
if (status != null && !status.equals("")) {
page = client.paginateWorkflowInstances(pageNum + 1, status);
} else {
page = client.paginateWorkflowInstances(pageNum + 1);
}
printer.println("Page: [num=" + page.getPageNum() + ","
+ "pageSize=" + page.getPageSize() + ",totalPages="
+ page.getTotalPages() + "]");