duplicateProcess

suspend fun duplicateProcess(context: Context, processUUID: String): ApiResult<STWProcess>

Creates a new copy of the given process. The copy will contain all values of the original process except signatures.

Return

ApiResult<STWProcess> The new process if the duplication was successfully done, or Error with reason otherwise.

Parameters

context
    **Context** The application context.
processUUID
    **String** the process uuid.