Collaborative Modeling of BPMN and HCPN: Formal Mapping and Iterative Evolution of Process Models for Scenario Changes
Abstract
:1. Introduction
- Lack of common semantic specification.
- 2.
- Absence of effective dynamic verification.
- Formal mapping rules.
- 2.
- Modular and hierarchical evolution mechanism.
- 3.
- Evolution-iterative architecture.
2. Relevant Works
3. Relevant Definitions
3.1. BPMN
- 1.
- Business Process : represents the internal business flow of the i-th pool, structured as
- (1)
- Node set , composed of three types of nodes:
- (a)
- : activity nodes, representing tasks or Sub-process within the process;
- (b)
- : event node;
- (c)
- : gateway nodes.
- (2)
- Intra-pool sequence flows describe the execution order of nodes within the pool.
- (3)
- Line : Metadata including data objects and lane assignments within pool i.
- 2.
- Message flow collection M: inter-pool interactions via message exchanges:
- 3.
- Swimlane : a set of swimlanes partitioning participants into organizational roles or responsibilities:
3.2. Petri Net
- P (place) is the set of finite non-empty libraries, and denotes the state or condition;
- T (transition) is a finite non-empty variation set, and denotes events or activities;
- (arc) is a directed set of arcs and can only be pointed at via a depot to a variation or a variation to a depot, and , ;
- denotes the initial identity, ; for the case of all place’s tokens at the initial moment, the token represents the object.
3.3. Hierarchical Colored Petri Net
- P, T, , and are the same with the PN set;
- Σ (color) denotes the set of colors and is non-empty finite;
- f (function) denotes a function, , denotes a color function, denotes a guard function, and denotes an arc expression function.
- The top-level Petri net is also known as the root process;
- The sub-network collection , in which is the substitution transitions;
- Σ (Color) represents the global color collection, and all subnetworks share a unified color set;
- f (function) represents the global set of functions to ensure the behavior consistency between subnetworks;
- is the hierarchical mapping function, which can map the parent network change to the subnetwork and inherit its behavior logic;
- The port is a set of port libraries used to connect the interfaces of the parent network to the child network to ensure consistency in the transfer of tokens. It consists of an in-port, an out-port, and an I/O port. The port library of the subnet must be the same color as the neighboring libraries of the parent net, that is: .
4. BPMN-HCPN Collaborative Modeling
4.1. BPMN-HCPN Model Evolution Framework
- Business process modeling phase.
- (1)
- Establishment of BPMN initial model: according to business requirements and business scenarios, establish the top-level BPMN collaboration model and output sub-modules after hierarchical and modular processing.
- (2)
- Evolutionary behavior analysis: identify scenario change requirements, define the set of evolutionary operations, , and output the updated BPMN model.
- Formal mapping stage.
- (1)
- Modular hierarchical mapping: define modular decomposition rules that map BPMN elements to the corresponding HCPN modules.
- (2)
- HCPN modeling: synthesize the mapped HCPN subfragments into HCPN nets, where the top network represents the BPMN backbone process, and the subnet set encapsulates all sub-processes.
- Dynamic evolution phase.
- (1)
- Model evolution identification: compare the BPMN model before and after evolution to determine the evolution existence region and operation execution set.
- (2)
- Evolutionary operation execution: perform related evolution operations based on the identified evolution data to build the HCPN evolution model.
- Validation and feedback phase.
- (1)
- State-space analysis: generate an accessible map based on the evolved HCPN model, and analyze key attributes:
- (2)
- If inaccessibility or activity conflict is detected, adjust back to the evolutionary phase, and iterate until verification.
4.2. Modular Decomposition of the BPMN Model
4.3. BPMN-HCPN Formal Mapping
Algorithm 1 BPMN-HCPN mapping correctness. |
Input: BPMN_model, HCPN_model, mapping list |
Output: mapping validity |
Start: Initialize # Check element correspondence def check_element_mapping (bpmn, hcpn, mapping): for bpmn_element, hcpn_element in mapping.items(): if bpmn_element not in bpmn or hcpn_element not in hcpn: print(f“Mapping error: {bpmn_element} in BPMN or {hcpn_element} in HCPN not found.”) else: print(f“Mapping {bpmn_element} to {hcpn_element} is valid.”) # Check connectivity def check_connection_mapping(bpmn_connections, hcpn_connections, mapping): for source, target in bpmn_connections: hcpn_source = mapping.get(source) hcpn_target = mapping.get(target) if hcpn_source and hcpn_target: if (hcpn_source, hcpn_target) not in hcpn_connections: print(f“Connection mapping error: {source} -> {target} in BPMN not mapped correctly.”) else: print(f“Connection mapping {source} -> {target} is valid.”) else: print(f“Connection mapping error: {source} or {target} not mapped.”) # Detecting mainstream process mapping print(“Checking main process mapping:”) check_element_mapping(bpmn_model, hcpn_model, mapping) check_connection_mapping(bpmn_connections, hcpn_connections, mapping) # Detection sub-process mapping print(“\nChecking sub-process mapping:”) check_element_mapping(sub_process, hcpn_sub, sub_process_mapping) |
4.4. BPMN-HCPN Evolution Operations
- Insertion evolution.
- (1)
- Locate the insertion node: set up the original process , and ;
- (2)
- Insert new fragment: inset ;
- (3)
- Adjust the connection elements: remove the existing arcs, , and add arcs with .
- 2.
- Deletion evolution.
- (1)
- Locate deleted fragment: , , ; select the to be deleted and the nodes ;
- (2)
- Delete old fragment: delete ;
- (3)
- Adjust the connection elements: remove the input/output arcs , and add a connecting arc (if semantics allow).
- 3.
- Substitution evolution.
- (1)
- Delete old fragment: delete ;
- (2)
- Insert new fragment: inset , and inherit the original set of fragment inputs and outputs;
- (3)
- Interface compatibility: determine that the connecting elements remain unchanged, and .
Algorithm 2 BPMN change detection. |
Input: BPMN _old, BPMN _new |
Output: changes = (op _type, el _type, el_id) |
Start: Initialize def detect_bpmn_changes(BPMN_old, BPMN_new): change_operations = [] for element in BPMN_old.elements: if element.id not in [e.id for e in BPMN_new.elements]: change_operations.append({ ‘op _type’: ‘delete’, ‘el _type’: element.type, ‘el_id’: element.id, }) else: new_element = next (or e in BPMN_new.elements if e.id == element.id) if element.attributes != new_element.attributes change_operations.append({ ‘op _type’: ‘insert’, ‘el _type’: element.type, ‘el_id’: element.id, }) for element in BPMN_new.elements: if element.id not in [e.id for e in BPMN_old.elements]: change_operations.append({ ‘op _type’: ‘replace’, ‘el _type’: element.type, ‘el_id’: element.id, }) return change_operations |
- 1.
- Sequential insertion.
- 2.
- Selective insertion.
- 3.
- Parallel insertion.
4.5. Case Study of Formal Verification Based on Replace Operations
- (1)
- Algorithm-based change extraction.
- (2)
- Process execution validation:
- a.
- Static structure validation: the correctness of the BPMN-HCPN mapping structure is tested by Algorithm 1.
- b.
- (3)
- Analysis of results.
- a.
- Deadlock analysis: as can be seen from Table 4,the Dead Mark is “9” and all states are terminated states (i.e., states entered at the end of a system run), which is in line with the end state of the process as expected by design, and there is no unintended deadlock; the dead transition instances are none, indicating that all transitions can be triggered in at least one state, and the system does not have transitions that cannot be activated at all, so static deadlock is excluded.
- d.
- Behavioral accessibility analysis: As can be seen from Figure 9, the identifications of all nodes can be covered, proving that the model satisfies the reachability requirement. The system can evolve from the initial state to all defined states of identification without path blocking or unreachability.
5. Intelligent AI Service Scenario Model
- Problem reception and preliminary processing stage: at the beginning of the process, the user takes the initiative to initiate the interaction with the AI human customer service, and the system then collects the problem information raised by the user.
- Problem analysis and solution generation stage: In the middle, the system pre-processes the collected problem information. Then, with the help of AI algorithms, databases, and other types of resources, the problem is thoroughly analyzed, and corresponding solutions are generated.
- Solution feedback and confirmation stage: At the end, the system will generate good solution feedback to the user. After receiving the feedback results, the user confirms whether the problem has been successfully solved.
- In the initial stage, the system introduces an intelligent problem recommendation mechanism, which is capable of speculating on user needs with the assistance of historical data, thereby reducing user initiation steps, effectively shortening the initial processing time, and thus significantly improving the overall efficiency.
- In the middle stage, the system introduces new algorithms and organically combines them with manual services in the problem analysis stage. This approach greatly improves the accuracy of problem processing and ensures that users are provided with more accurate and effective solutions.
- At the end of the process, the system adds an evaluation and feedback module. When the user confirms the end of the problem processing, the system automatically pops up the evaluation window to survey user satisfaction; the module is designed to comprehensively collect user feedback to provide a strong basis for subsequent system optimization.
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Dumas, M.; Fournier, F.; Limonad, L.; Marrella, A.; Montali, M.; Rehse, J.R.; Accorsi, R.; Calvanese, D.; De Giacomo, G.; Fahland, D.; et al. AI-augmented business process management systems: A research manifesto. ACM Trans. Manag. Inf. Syst. 2023, 14, 1–19. [Google Scholar] [CrossRef]
- Shaya, P.; Sander, P.; Remco, D.; Paul, G. BPMS-RA: A Novel Reference Architecture for Business Process Management Systems. ACM Trans. Internet Technol. 2019, 19, 1–23. [Google Scholar]
- Srdan, D.S.; Nikola, T.; Darko, E. Big data BPMN workflow resource optimization in the cloud. Parallel Comput. 2023, 117, 103025. [Google Scholar]
- Corradini, F.; Ferrari, A.; Fornari, F.; Gnesi, S.; Polini, A.; Re, B.; Spagnolo, G.O. A Guidelines Framework for Understandable BPMN Models. Data Knowl. Eng. 2018, 113, 129–154. [Google Scholar] [CrossRef]
- Gudemann, M.; Poizat, P.; Salaun, G.; Ye, L. VerChor: A framework for the design and verification of choreographies. IEEE Trans. Serv. Comput. 2016, 9, 647–660. [Google Scholar] [CrossRef]
- Huang, F.; Ni, F.; Liu, J.; Tao, M.; Zhou, Y.; Li, Y. Data flow modeling and verification of complex BPMN collaboration models based on HCPN. Comput. Integr. Manuf. Syst. 2024, 30, 1754–1769. [Google Scholar]
- Flavio, C.; Chiara, M.; Barbara, R.; Lorenzo, R.; Francesco, T. BPMN 2.0 OR-join semantics: Global and local characterization. Inf. Syst. 2022, 105, 101934. [Google Scholar]
- Dai, F.; Zhao, W.; Yang, Y.; Mo, Q.; Li, T.; Zhou, H. Formal semantics and analysis of BPMN 2.0 orchestration. J. Softw. 2018, 29, 1094–1114. [Google Scholar] [CrossRef]
- Christen, R.; James, B.D.; Keith, R. Complex Systems, Evolution and the Management of Manufacturing Change. Emerg. Complex. Organ. 2019, 20, 198946468. [Google Scholar]
- Rova, S.; Meire, P.; Müller, F.; Simeoni, M.; Pranovi, F. A Petri net modeling approach to explore the temporal dynamics of the provision of multiple ecosystem services. Sci. Total Environ. 2019, 655, 1047–1061. [Google Scholar] [CrossRef]
- Song, W.; Jacobsen, H. Static and dynamic process change. IEEE Trans. Serv. Comput. 2018, 11, 215–231. [Google Scholar] [CrossRef]
- Lehnert, S.; Farooq, Q.; Riebisch, M. A Taxonomy of Change Types and Its Application in Software Evolution. In Proceedings of the 2012 IEEE 19th International Conference and Workshops on Engineering of Computer-Based Systems, Novi Sad, Serbia, 11–13 April 2012; pp. 98–107. [Google Scholar]
- Ortiz, J.; Torres, V.; Valderas, P. Microservice compositions based on the choreography of BPMN fragments: Facing evolution issues. Computing 2022, 105, 375–416. [Google Scholar] [CrossRef]
- Vrinda, Y.; Rushikesh, K.; Joshi, S.; Ling, E. A tool for traceable evolution of process architectures. In Proceedings of the 2018 IEEE International Conference on Software Architecture Companion (ICSA-C), Seattle, WA, USA, 30 April–4 May 2018; pp. 101–106. [Google Scholar]
- Ming, Z.; Jing, L.; Guodong, F. Modeling and verification of response time of QoS-aware web service composition by timed CSP. Procedia Comput. Sci. 2018, 14, 148–155. [Google Scholar]
- Flavio, O. Π-Calculus for SoS: A foundation for formally describing software-intensive Systems-of-Systems. In Proceedings of the 2016 11th System of Systems Engineering Conference (SoSE), Kongsberg, Norway, 12–16 June 2016; pp. 1–6. [Google Scholar]
- Sara, H.; Souheib, B.; Pascal, P.; Philippe, Q.; Laid, K. A First-Order Logic Verification Framework for Communication-Parametric and Time-Aware BPMN Collaborations. Inf. Syst. 2021, 104, 101765. [Google Scholar]
- Francisco, D.; Camilo, R.; Gwen, S. A rewriting logic approach to resource allocation analysis in business process models. Sci. Comput. Program. 2019, 183, 102303. [Google Scholar]
- Kaouther, M.; Latifa, M. Public processes legal issues verification using YAWL. In Proceedings of the 16th International Conference on Evaluation of Novel Approaches to Software Engineering, Online, 26–27 April 2021; pp. 289–296. [Google Scholar]
- Fenglan, H.; Feng, N.; Jiang, L.; Fan, Y.; Jiayi, Z. A colored Petri net executable modeling approach for a data flow well-structured BPMN process model. IEEE Access 2022, 10, 86696–86709. [Google Scholar]
- Li, C. Formal modeling and discovery of multi-instance business processes: A cloud resource management case study. IEEE/CAA J. Autom. Sin. 2022, 9, 2151–2160. [Google Scholar] [CrossRef]
- Medina-Garcia, S.; Medina-Marin, J.; Montaño-Arango, O.; Gonzalez-Hernandez, M.; Hernandez-Gress, E.S. A Petri net approach for business process modeling and simulation. Appl. Sci. 2023, 13, 11192. [Google Scholar] [CrossRef]
- Hu, Q.; Ren, Z.; Zhao, Z.; Du, J.; Du, Y. Study on structure evolution for service processes base on logic petri net. J. Softw. 2018, 29, 2697–2715. [Google Scholar]
- Krishna, A.; Poizat, P.; Salaün, G. Checking business process evolution. Sci. Comput. Program. 2018, 158, 1–26. [Google Scholar] [CrossRef]
- Li, Z.; Ye, Z. A Petri nets evolution method that supports BPMN model changes. Sci. Program. 2021, 2021, 6610795. [Google Scholar] [CrossRef]
- Hsieh, F.-S. A self-adaptive neighborhood search differential evolution algorithm for planning sustainable sequential cyber–physical production systems. Appl. Sci. 2024, 14, 8044. [Google Scholar] [CrossRef]
- Luca, S.; Massimo, C. Supporting dynamic workflows with automatic extraction of goals from BPMN. ACM Trans. Auton. Adapt. Syst. 2019, 14, 1–38. [Google Scholar]
- Duran, F.; Salaün, G. Optimization of BPMN processes via automated refactoring. In Service-Oriented Computing. ICSOC 2022; Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2022; Volume 13740, pp. 3–18. [Google Scholar]
- Costa, F.; Ferrari, F.; Pautasso, A.; Russo, B.; Tiezzi, F. A formal approach to modeling and verification of business process collaborations. Sci. Comput. Program. 2018, 166, 35–70. [Google Scholar]
- Huang, F.; Ni, F.; Liu, J.; Zhang, J.; Tuo, K. An executable modeling method for ROAD-CPN business architectures. J. Univ. Shanghai Sci. Technol. 2023, 45, 5–15. [Google Scholar]
- Dechsupa, C.; Vatanawood, W.; Thongtak, A. Hierarchical verification for the BPMN design model using state space analysis. IEEE Access 2019, 7, 16795–16815. [Google Scholar] [CrossRef]
- Pomares-Angelino, R.; López-Mellado, E. Discovering Petri nets including silent transitions: A repairing approach based on structural patterns. Discret. Event Dyn. Syst. 2022, 32, 291–315. [Google Scholar] [CrossRef]
- Dai, F.; Mo, Q.; Li, T.; Huang, B.; Yang, Y.; Zhao, Y. Refactoring business process models with process fragments substitution. Wirel. Netw. 2020, 26, 3507–3521. [Google Scholar] [CrossRef]
- Zhong, X.; Ni, F.; Liu, J.; Zhong, D.; Yin, X.; Zhao, R. Scenario-oriented business architecture modeling method based on ROADS. J. Univ. Shanghai Sci. Technol. 2023, 45, 415–424. [Google Scholar]
- Liu, R.; Liu, X.; Zhao, W.; Zhu, C. Automatic business process modeling method based on large language models. Comput. Integr. Manuf. Syst. 2025, 31, 1–24. [Google Scholar]
Authors (Year) | Methods | Evolution | Applied Scenarios | Limitation |
---|---|---|---|---|
Flavio et al. (2018) [16] | π-calculus | Static | Business process collaborations | Lack of evolutionary operations |
Hu et al. (2018) [23] | Logical Petri net (LPN) | Dynamic | Service network structure changes | Overall structural changes do not support local updates |
Luca et al. (2019) [27] | Petri net | Dynamic | Dynamic workflows | Lack of evolutionary operations |
Li et al. (2021) [25] | Extended Petri net (EPN) | From static to dynamic | BPMN structure evolution | The formal validation of state migration was not considered |
Ortiz et al. (2022) [13] | Bottom-up evolution protocol | Static | BPMN microservice compositions | Lack of formal validation |
Duran et al. (2022) [28] | Business process refection (BPR) | Static | Process structure redundancy elimination and performance optimization | Refactoring rules need to be defined manually |
Hsieh et al. (2024) [26] | Discrete timed Petri nets (DTPNs) | Dynamic | Cyber–physical systems (CPSs) | The validation is more applicable to sequential processes and do not have specific evolutionary operations |
This article | Hierarchical colored Petri net (HCPN) | From static to dynamic | The BPMN collaboration process | Suitable for complex process evolution analysis |
BPMN Element | Evolution Behavior | Formal Definition |
---|---|---|
Start event | None | |
Intermediate event | Insert, delete | |
End event | Insert, delete | |
Parallel gateway | Insert, delete | |
Exclusive gateway | Insert, delete | |
Task | Insert, delete | |
Sub-process | Insert, delete | |
Sequence flow | Insert, delete | |
Message flow | Insert, delete |
Element | Significance | Element | Significance |
---|---|---|---|
T1 | Select gift | t1 | Electronic payment |
T2 | Purchase gifts | t2 | Cash payment |
T4 | Payment | Silent1 | None |
T5 | Payment confirmation | Silent2 | None |
T-sub | Choose the payment method | Silent3 | None |
CPN Tools State-Space Report for the HCPN-Replace Model (Part) | |
---|---|
State Space | |
Nodes: | 9 |
Arcs: | 9 |
Secs: | 0 |
Status: | Full |
Scc Graph | |
Nodes: | 9 |
Arcs: | 9 |
Secs: | 0 |
Home Properties | |
Home Markings: | [9] |
Liveness Properties | |
Dead Markings: | [9] |
Dead Transition Instances: | None |
Live Transition Instances: | None |
Validation Dimensions | Indicators | Results |
---|---|---|
Structural integrity | Input/output arc | 100% |
Behavioral properties | State space | Reachable |
Exception detection | Number of deadlocks | 0 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Zhang, Z.; Ni, F.; Liu, J.; Chen, N.; Zhou, X. Collaborative Modeling of BPMN and HCPN: Formal Mapping and Iterative Evolution of Process Models for Scenario Changes. Information 2025, 16, 323. https://doi.org/10.3390/info16040323
Zhang Z, Ni F, Liu J, Chen N, Zhou X. Collaborative Modeling of BPMN and HCPN: Formal Mapping and Iterative Evolution of Process Models for Scenario Changes. Information. 2025; 16(4):323. https://doi.org/10.3390/info16040323
Chicago/Turabian StyleZhang, Zhaoqi, Feng Ni, Jiang Liu, Niannian Chen, and Xingjun Zhou. 2025. "Collaborative Modeling of BPMN and HCPN: Formal Mapping and Iterative Evolution of Process Models for Scenario Changes" Information 16, no. 4: 323. https://doi.org/10.3390/info16040323
APA StyleZhang, Z., Ni, F., Liu, J., Chen, N., & Zhou, X. (2025). Collaborative Modeling of BPMN and HCPN: Formal Mapping and Iterative Evolution of Process Models for Scenario Changes. Information, 16(4), 323. https://doi.org/10.3390/info16040323