open Process
suspend fun openProcess( context: Context, process: STWProcess, lifecycleOwner: LifecycleOwner? = null): ApiResult<STWProcessStack>
Content copied to clipboard
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>
Content copied to clipboard
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.Content copied to clipboard
process UUID
**String** the uuid of the process to open.Content copied to clipboard