get Process List By Tab As Flow
fun getProcessListByTabAsFlow( context: Context, tab: Int, keyWord: String? = null): Flow<List<STWProcess>?>
Content copied to clipboard
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
(Context, int, String)
[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
Content copied to clipboard
Parameters
context
**Context** The application context.
**[ProcessTab]:** Process tab, must be oneContent copied to clipboard
tab
of the following list:Content copied to clipboard
key Word
**String:** to get only processes with name
containing this keyword,
put empty string to get all processes that belongs to given tab.Content copied to clipboard