createNewProcess

open fun createNewProcess(@NonNull context: Context, @NonNull templateUUID: String): ProcessItem

Creates a new process using the given template. PS: It is highly recommended to call this method in an asynchronous thread. The process creation can fails if the given template is not exist or not downloaded yet.

Return

ProcessItem created from the given template, or null if process creation failed for any reason.

Parameters

context

Context The application context.

templateUUID

String the template uuid


open fun createNewProcess(    @NonNull context: Context,     @NonNull templateUUID: String,     @NonNull processUUID: String): ProcessItem

Creates a new process using the given template. PS: It is highly recommended to call this method in an asynchronous thread. The process creation can fails if the given template is not exist or not downloaded yet.

Return

ProcessItem created from the given template, or null if process creation failed for any reason.

Parameters

context

Context The application context.

templateUUID

String the template uuid

processUUID

String the process uuid