Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
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

Thai

กระบวนการ

sort
public static void sort(java.util.List list, java.lang.String field, java.lang.Boolean desc)
English
Sorts a list based on a field value of object in the list 
Thai

เรียงลำดับรายการตามค่าฟิลด์ของวัตถุในรายการ

...