How to create a new state

How to create a new entity state as pending payment or lock.

-pending payment
-Busy (People waiting for someone else)

Thank you very much for your help

Best thing to do is study the other states and learn how they work. Can you explain what your trying to do? We might be able to help you further if you can explain the desired work flow your trying to accomplish.