createNewProcess

suspend fun createNewProcess(context: Context, templateUUID: String): ApiResult<STWProcess>

Creates a new process using the given template.

The process creation can fails if the given template is not exist or not downloaded yet.

Return

ApiResult<STWProcess> The new created process, or Error with reason if process creation failed.

Parameters

context
    **Context** The application context.
templateUUID
    **String** the template uuid.