Abstract
This thesis proposes two workflow-based design patterns for distributed systems. The design patterns are specially for distributed systems have both embedded and enterprise components and provide services and assistances for their users, such as warehouse automation system, guiding robots in museum and hospital automation system. After using action oriented structure to model the communication and collaboration between components inside embedded component systems, this thesis also design and implement a hospital autoamtion prototype system as a case study