cancelProcess

suspend fun cancelProcess(    context: Context,     processUUID: String,     processName: String?,     values: JSONObject?,     onSuccess: () -> Unit? = null,     onError: (MyBusinessError) -> Unit? = null)

Cancels the given process. PS: If the process is scheduled it will be deleted as it was never created, otherwise it will be canceled and moved to the list of canceled processes.

Parameters

context
    **Context** The application context.
processUUID
    **String** the process uuid
processName
    **String** the process name
values
    **JSONObject** contains data retrieved from process
    widgets.
onSuccess

callback method that called when the operation was successful.

onError

callback method that called if the operation failed for any reason.