saveProcess

suspend fun saveProcess(    context: Context,     processUUID: String,     processName: String,     values: JSONObject,     recipients: Array<String>,     onSuccess: () -> Unit?,     onError: (MyBusinessError) -> Unit?)

Saves the given process locally and synchronises new values with other clients.

Parameters

context
    **Context** The application context.
processUUID
    **String** the process uuid.
processName
    **String** the process name.
values
    **JSONObject** contains data retrieved from process
    widgets.
recipients
    list of recipients: formatted like : MSISDNs and group ids comma
    separated.
    (example of recipients format:
    [group:1,group:2,1234567891,1234567892,1234567893])
onSuccess

callback method that called when the operation was successful.

onError

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