load History By Version
abstract suspend fun loadHistoryByVersion(context: Context, version: Int): ApiResult<ProcessHistoryVersion>
Content copied to clipboard
Loads the process history for the given version. PS: It is recommended to save process before calling this methode if the process is currently in DisplayMode.EDIT mode, To not lose data entered by user.
Return
ApiResult<ProcessHistoryVersion> : ApiResult.Success if the operation successfully completed, or ApiResult.Error otherwise
Parameters
context
Context The application context.
version
Int the version to load. Must be in 1..currentVersion