# Addressing Business Process Deviations through the Evaluation of Alternative Pattern-Based Models
## 5 Discussion and Limitations
These characterizations provided a valuable framework for accurately calculating the impact of candidates on the system and identifying the most effective course of action to repair the workflow. It would have been challenging to reach the degree of accuracy and efficiency needed to appropriately resolve unforeseen issues in the workflow without these characterizations. The ease of implementing the methodology described in thisstudy through coding, as shown in the prior proof-of-concept case study, is one of its key benefits. By characterizing and formulating the approach, it was possible to easily add new characterizations to the existing BPMN elements and implement the entire approach using Python. This ease of implementation is a crucial factor in making the approach accessible and feasible for real-world applications, as it enables practitioners to quickly and efficiently incorporate it into their existing systems and workflows. In addition, the proposed iterative solution injection approach involves the system continuously analysing historical data to suggest optimizations at the main model level. By learning from past experiences and adapting to new circumstances, the system can continually improve its performance. This approach opens up new possibilities for artificial intelligence studies in the future, where the system could use the historical database to further enhance the model's design. With this approach, the system can identify recurring deviations and propose improvements to the main model to prevent or minimize their impact. The proposed approach has several limitations that should be acknowledged. Firstly, the types of repairs introduced, namely entry/exit corrections and bypass, are considered basic repairs. There may be room to explore additional types of repairs and alternative methods of injection. Further research could investigate more sophisticated repair techniques to expand the repertoire of available repair options. Secondly, the focus of this research was primarily on forward repairs, addressing deviations and enabling the system to proceed with the remaining steps. However, it is essential to recognize that backward repairs, which involve revisiting previous steps to rectify errors or inconsistencies, may also play a crucial role in real-world scenarios. More, it is important to note that resource management and scheduling aspects were intentionally excluded from the scope of this paper. While the proposed approach addresses deviations within the BP, the management of resources and scheduling considerations remain separate concerns. Future research could explore how resource management and scheduling techniques can complement this approach, providing a more comprehensive solution for process optimization. The paper aimed to showcase the applicability of the proposed approach in real-world scenarios, with a particular focus on the apiculture domain due to time limitations. However, it is recognized that conducting broader tests in various other domains would provide further validation of the approach in diverse contexts.