Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
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);
public static void sort(java.util.List list, java.lang.String field, java.lang.Boolean desc)
Sorts a list based on a field value of object in the list
public static java.util.List sortAndPage(java.util.List list, java.lang.String field, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows)
Orders the list based on a field value of object in the list and returns the results of a page
public static java.util.List subList(java.util.List list, java.lang.Integer start, java.lang.Integer rows)
Gets the results of a page from a List