In this paper we describe an architecture for behavioral organization based on dynamical systems. This architecture enables the generation of complex behavioral sequences, which is demonstrated using the example of approaching and passing a door. The behavioral sequence is generated by activating and deactivating the elementary behaviors dependent on sensory information and internal logical conditions. The architecture is demonstrated on a mobile KOALA robot and in simulation as well.