A state is a condition or stage of a flow in which the flow processor verifies if a condition is satisfied, performs some activity, or waits for some event to progress to the next state. A flow contains an initial state, one or more final states and any number of other states through which it might go.