getProcessListByTab

open fun getProcessListByTab(    @NonNull context: Context,     tab: Int,     @Nullable searchKeyword: String): List<ProcessItem>

Gets the list of processes that belongs to the given tab and matching the searchKeyword. Empty searchKeyword will return the full list of tab processes.

Return

The List of ProcessItem found.

See also

  • IN_PROGRESS : to get only in progress processes
  • SUBMITTED : to get only submitted processes
  • COMPLETED : to get only completed processes
  • CANCELED : to get only cancelled processes
  • NEW : to get only new processes
  • DRAFT : to get only draft processes

Parameters

context

Context The application context.

tab

STWProcessTab: Process tab, must be one of the following list:

searchKeyword

String : to get only processes with name containing this keyword, put empty string to get all processes that belongs to given tab.


open fun getProcessListByTab(    @NonNull context: Context,     tab: Int,     applyFilter: Boolean,     applySort: Boolean,     @Nullable searchKeyword: String): List<ProcessItem>

Gets the list of processes that belongs to the given tab and matching the searchKeyword. Empty searchKeyword will return the full list of tab processes. This method offers the possibility to apply some filters

Return

The List of ProcessItem found.

See also

Also this method offers the possibility to apply sort

  • IN_PROGRESS : to get only in progressprocesses
  • SUBMITTED : to get only submittedprocesses
  • COMPLETED : to get only completedprocesses
  • CANCELED : to get only cancelledprocesses
  • NEW : to get only new processes
  • DRAFT : to get only draft processes

Parameters

context

Context The application context.

tab

STWProcessTab: Process tab, must be one of the following list:

applyFilter

boolean true to filter processes.

applySort

boolean true to sort processes.

searchKeyword

String : to get only processes with name containing this keyword, put empty string to get all processes that belongs to given tab.