submit

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

Saves and Submits the current process to the given recipients.

See also

Parameters

context

Context The application context.

processName

String(Optional) the new process name, if the name was changed by user.

recipientList

List<RecipientModel> 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.