getProcessListByTabAsFlow

fun getProcessListByTabAsFlow(    context: Context,     tab: Int,     keyWord: String? = null): Flow<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

A Flow for 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.
    **[ProcessTab]:** Process tab, must be one
tab
    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.