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