load Previous Process Data
abstract suspend fun loadPreviousProcessData( context: Context, widgetUUID: String, widgetValue: Any, blacklistedWidgetsUUIDs: List<String?>?, onSuccess: () -> Unit? = null, onError: (MyBusinessError) -> Unit? = null)
Content copied to clipboard
Loads last data entered in a completed process using same template and same data entered in the given widget.
Parameters
context
Context The application context.
widget UUID
String the widget uuid.
widget Value
String the data entered in the widget.
blacklisted Widgets UUIDs
List
on Success
(Optional) will be called when the process data successfully loaded.
on Error
(Optional) will be called when the operation fails for any reason.