cancel Process
suspend fun cancelProcess( context: Context, processUUID: String, processName: String?, values: JSONObject?, onSuccess: () -> Unit? = null, onError: (MyBusinessError) -> Unit? = null)
Content copied to clipboard
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.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
on Success
callback method that called when the operation was successful.
on Error
callback method that called if the operation failed for any reason.