Updates a custom state.
The ID of the custom state to update.
Whether this is a final state.
The name of the custom state.
Ordinal of the custom state used to identify system states.