openProcess

suspend fun openProcess(    context: Context,     process: STWProcess,     lifecycleOwner: LifecycleOwner? = null): ApiResult<STWProcessStack>

Open a process stack using the given process.

The process stack creation can fails if the maximum authorized stack instances is reached

Return

ApiResult<STWProcessStack> The new STWProcessStack, or Error with reason if the process cannot be opened for any reason.

Parameters

context

Context The application context.

process

STWProcess the process object


suspend fun openProcess(    context: Context,     processUUID: String,     lifecycleOwner: LifecycleOwner? = null): ApiResult<STWProcessStack>

Open a process stack using the given process.

The process stack creation can fails if the maximum authorized stack instances is reached

Return

ApiResult<STWProcessStack> The new STWProcessStack, or Error with reason if the process cannot be opened for any reason.

Parameters

context
    **Context** The application context.
processUUID
    **String** the uuid of the process to open.