The work presents a supervised and distributed approach based on holonic architecture, called SUDIHA, for dynamic scheduling of CPPS. This approach integrates three holons: the product holon, the resource holon and the order holon. The product holon provides global supervision, while the resource holon offers dynamic local control. The idea is to adjust the level of autonomy of the local holons according to the level of authority of the global holons to achieve a delicate balance and ensure the stability of the manufacturing system.In a second step, we developed the DT-SUDIHA architecture, using the Digital Twin concept. DTs are virtual representations of the real system that enable bidirectional interaction with their physical counterparts. This helps resolve the complexity and increase the flexibility of production systems. A case study is carried out in a flexible workshop to demonstrate the effectiveness of the proposed approach. The results show that the SUDIHA architecture, combined with the use of digital twins, enables robust and flexible dynamic planning, capable of handling disturbances.