submit Process
suspend fun submitProcess( context: Context, processUUID: String, processName: String, values: JSONObject, recipients: Array<String>, onSuccess: () -> Unit?, onError: (MyBusinessError) -> Unit?)
Content copied to clipboard
Saves and Submits the given process to the given recipients.
Parameters
context
**Context** The application context.Content copied to clipboard
process UUID
**String** the process uuidContent copied to clipboard
process Name
**String** the process nameContent copied to clipboard
values
**JSONObject** contains data retrieved from process
widgets.Content copied to clipboard
recipients
list of recipients: formatted like : MSISDNs and group ids comma
separated.
(example of recipients format:
[group:1,group:2,1234567891,1234567892,1234567893])Content copied to clipboard
on Success
callback method that called when the operation was successful.
on Error
callback method that called if the operation failed for any reason.