Hello, snaphold, you wrote: S> Hello, Qulac, you wrote: Q>> Hello, snaphold, you wrote: S>>> There is an object the Order. S>>> at it can be the order of 30 statuses. S>>> is where the administrator can span the order from any status in any status. S>>> that is if all to paint on each combination that it turns out and a lot of duplication turns out. S>>> for certain there are checked templates for the such? What? Q>> such variant yet was not: if it is possible to reorganize states in the form of states and for implementation of states we use a pattern state from gof, and for - state machine. S> Found implementation S> but here the moment what is not clear. S> here if we follow an example from link S> There is a jump table at me there is a passage from Paused in Exit. S> Accordingly as it will look? StateMAchine I so understood is good when it is necessary to pass in an adjacent state, and when it is necessary to pass through some states how to be? S> probably Stejt approaches but how to envelop? Did not understand a question. Imagine a label, where across - input influences, on a vertical - a current state, and in cells - a new state. To issue it it is possible on a miscellaneous, including attracting . the general all it is defined by pair: the current state - input influence, in the resulted example is class StateTransition, for each such pair we define a new state and if needed we pass. I.e. pass we can as us takes in head.