Managing development of large and complex enterprise architectures is a key problem in enterprise engineering. Nowadays one of the breathtaking topics considering enterprise context is real-time system agility. The paper discusses an appropriate general architecture pattern and provides insights how dynamic process management environment could be made. We survey general enterprise software architecture and current agility problems. We introduce a special component called a process knowledge base and justify its crucial role in achieving agility within the enterprise. We study both the architecture of the process knowledge base as well as formal basis for its implementation which relies upon the type theory.