RePort function that handles the reporting logic based on the provided parameters.
This method checks the current state of the recording process and updates the screen states
accordingly. It also compares active names and screen states based on the provided parameters.
Param: options
The options for the rePort function.
Param: options.restart
Flag indicating whether to restart the process.
Param: options.parameters
The parameters object containing various states and functions.
Param: options.parameters.getUpdatedAllParams
Function to get updated parameters.
Param: options.parameters.islevel
The current level of the process.
Param: options.parameters.mainScreenPerson
The person on the main screen.
Param: options.parameters.adminOnMainScreen
Flag indicating if admin is on the main screen.
Param: options.parameters.mainScreenFilled
Flag indicating if the main screen is filled.
Param: options.parameters.recordStarted
Flag indicating if recording has started.
Param: options.parameters.recordStopped
Flag indicating if recording has stopped.
Param: options.parameters.recordPaused
Flag indicating if recording is paused.
Param: options.parameters.recordResumed
Flag indicating if recording has resumed.
Param: options.parameters.screenStates
Array of current screen states.
Param: options.parameters.updateScreenStates
Function to update the current screen states.
Param: options.parameters.updatePrevScreenStates
Function to update the previous screen states.
Param: options.parameters.compareActiveNames
Function to compare active names.
Param: options.parameters.compareScreenStates
Function to compare screen states.
Returns
A promise that resolves when the reporting process is complete.
Throws
Throws an error if there is an issue during the reporting process.
RePort function that handles the reporting logic based on the provided parameters.
This method checks the current state of the recording process and updates the screen states accordingly. It also compares active names and screen states based on the provided parameters.
Param: options
The options for the rePort function.
Param: options.restart
Flag indicating whether to restart the process.
Param: options.parameters
The parameters object containing various states and functions.
Param: options.parameters.getUpdatedAllParams
Function to get updated parameters.
Param: options.parameters.islevel
The current level of the process.
Param: options.parameters.mainScreenPerson
The person on the main screen.
Param: options.parameters.adminOnMainScreen
Flag indicating if admin is on the main screen.
Param: options.parameters.mainScreenFilled
Flag indicating if the main screen is filled.
Param: options.parameters.recordStarted
Flag indicating if recording has started.
Param: options.parameters.recordStopped
Flag indicating if recording has stopped.
Param: options.parameters.recordPaused
Flag indicating if recording is paused.
Param: options.parameters.recordResumed
Flag indicating if recording has resumed.
Param: options.parameters.screenStates
Array of current screen states.
Param: options.parameters.updateScreenStates
Function to update the current screen states.
Param: options.parameters.updatePrevScreenStates
Function to update the previous screen states.
Param: options.parameters.compareActiveNames
Function to compare active names.
Param: options.parameters.compareScreenStates
Function to compare screen states.
Returns
A promise that resolves when the reporting process is complete.
Throws
Throws an error if there is an issue during the reporting process.
Example