getProcessListByTab

suspend fun getProcessListByTab(    context: Context,     tab: Int,     keyWord: String? = null): List<STWProcess>?

Gets the list of processes that belongs to the given tab and matching the keyWord.

Empty keyWord will return the full list of tab processes.

Return

The List of STWProcess.

See also

    
    [ProcessTab#IN_PROGRESS]: to get only in progress
    processes
    [ProcessTab#SUBMITTED]: to get only submitted
    processes
    [ProcessTab#COMPLETED]: to get only completed
    processes
    [ProcessTab#CANCELED]: to get only cancelled
    processes
    [ProcessTab#NEW]: to get only new processes
    [ProcessTab#DRAFT]: to get only draft processes
    

Parameters

context
    **Context** The application context.
tab
    **[ProcessTab]:** Process tab, must be one
    of the following list:
keyWord
    **String : ** to get only processes with name
    containing this keyword,
    put empty string to get all processes that belongs to given tab.