- org.joget.commons.util.PagingUtils
- Under wflow-commons module
- Utility method used for sorting and paging an ordered list of data
...
Code Block |
---|
|
import java.util.List;
import org.joget.apps.app.service.AppUtil;
import org.joget.workflow.model.WorkflowProcess;
import org.joget.workflow.model.service.WorkflowManager;
WorkflowManager workflowManager = (WorkflowManager) AppUtil.getApplicationContext().getBean("workflowManager");
List<WorkflowProcess> processList = (List<WorkflowProcess>) workflowManager.getProcessList("crm");
//Sort it by process id
PagingUtils.sort(processList, "id", false); |
Methods
sort
public static void sort(java.util.List list, java.lang.String field, java.lang.Boolean desc)
...