save

abstract suspend fun save(    context: Context,     processName: String,     recipientList: List<RecipientModel>? = null,     isAutomatic: Boolean = false,     onSuccess: (String) -> Unit? = null,     onError: (MyBusinessError) -> Unit? = null): Any

Saves the process locally and synchronises new values with other clients like web App connected to the same account.

See also

Parameters

context

Context The application context.

processName

String the process name.

recipientList

List<RecipientModel>(Optional) list of recipients

onSuccess

(Optional) will be called when the operation successfully completed.

onError

(Optional) will be called when the operation fails for any reason.