processCommand
public static GenericActionResponse processCommand(GenericActionCommand cmd)
This method emulates execution of UI procedures (action commands) by a human. It must "understand" the action it executes and know all action commands that an action may issue. The normal flow of
"discovery" action issues only "Edit Data" commands, so we just fail if command of any other type was received.
When received an "Edit Data" command, we reply by sending the same data. This emulated a simple click on "OK" button, i.e. when data was not edited. However, some requests with "known" IDs are
filled with additional data.
- Parameters:
cmd - UI procedure to process
- Returns:
- Action response