Research in the area of Cyber-Physical Systems (CPS) and Internet of Things (IoT) become, in the last 3 years a priority for both research entities and companies. Implementing Enterprise Systems based on the two paradigms is focused on merging real and virtual objects and thus deals with an increased degree of complexity. The aim of the present paper is to discuss an Enterprise Architecture and a Framework based on the integration of CPS and IoT technologies within Enterprise Systems. An important aspect is related to process mining implemented in two focus areas: the ability to generate business processes from data acquired from sensors and the ability to integrate sensor acquired data with existing business processes