t Job State
Maps specific batch states to job states, otherwise returns the state as is.
Return
The mapped or original state string.
Parameters
state
The input state as an Object, expected to be a String.
Throws
If the input state is not a String.