Payment Rails in Smart Contract as a Service (SCaaS) Solutions from BPMN Models
Abstract
1. Introduction
- 1.
- Semantic richness—Payments involve amounts, assets (currencies or tokens), participants, timing constraints, and compliance conditions, all of which must be respected by execution logic.
- 2.
- Implementation diversity—The actual execution semantics vary widely depending on the payment rail (traditional banking, DeFi protocols, escrow logic, wrapped assets, or cross-chain protocols), even though BAs typically model payments as abstract tasks.
1.1. Objectives
- Enable software developers to prepare specific smart-contract payment services in advance, targeting various payment rails (on-chain crypto, off-chain bank transfers, cross-chain rails).
- Allow business analysts to model trade activities for goods and services in BPMN models while allowing them to use generic representation of payment services without requiring knowledge of payment implementation details.
- Design a transformation process that identifies generic payment tasks in a BA’s BPMN model, matches them to concrete payment services via a BPMN fragment repository, augments the BPMN model accordingly, and generates a smart contract that orchestrates the trade activity while invoking the appropriate payment services.
1.2. Contributions
- Separation of concerns between trade-activity modeling and payment implementation, allowing BAs and developers to work independently at appropriate abstraction levels.
- Repository-mediated transformation of generic payment tasks, enabling BPMN payment elements prepared by BAs to be mapped to instantiated and deployed payment services prepared by developers.
- Multi-rail payment support for heterogeneous payment scenarios, including on-chain native payments, third-party cross-chain stablecoin payments, and off-chain conventional banking transfers.
- Reuse and composition of patterns for extensibility of payment services, enabling the same payment services to be leveraged across multiple trade applications.
- Shared state management across participants to facilitate sophisticated multi-party settlement patterns.
- Cross-platform payment service invocation, supporting interaction with heterogeneous blockchain and off-chain systems.
- Incremental ecosystem growth, allowing new payment services to be added to the repository without disrupting existing applications.
1.3. Outline
2. Background
2.1. Payment Methods in Conventional and Blockchain Ecosystems
2.1.1. Conventional (Off-Chain) Payments
2.1.2. Blockchain-Based Payments
On-Mainchain Payments
Cross-Chain Native Payments
Third-Party Cross-Ledger Payments
Hybrid Payments
2.2. BPMN, DMN, and FEEL
2.2.1. Business Process Model and Notation (BPMN)
2.2.2. Decision Model and Notation (DMN) and FEEL
2.3. BPMN-to-Smart Contract Transformations
- (i)
- First, business analyst-driven logic is enabled through integration with Decision Model and Notation (DMN). Business analysts can specify conditional decision logic using DMN and FEEL directly within BPMN models, and this logic is automatically incorporated into the generated smart contracts. As a result, domain experts can modify process behavior and decision rules without direct involvement from smart contract developers, significantly improving accessibility and maintainability.
- (ii)
- Second, repair and upgrade support is provided to address runtime failures and process evolution. The repair identifies the innermost failing transactional BPMN fragment, allowing the modeler to revise the corresponding BPMN/DMN logic and regenerate the smart contract. The regeneration process preserves execution consistency by systematically reconstructing contract logic and transaction mechanisms, enabling controlled upgrades while maintaining state continuity [20].
3. Making Payments—Service Modeling, Deployment, and Use
3.1. Overview of Payment Services in SCaaS
3.2. Preparation and Deployment of Payment Service Smart Contracts
- i.
- On-chain native payments—Simple transfers of native tokens (e.g., ETH) between accounts on the same blockchain. These payments are atomic and synchronous, and smart contract invocation typically triggers immediate settlement within the same transaction context.
- ii.
- Cross-chain crypto-payments—Payments facilitated across distinct blockchains using bridges or oracle mechanisms. These involve auxiliary/helper contracts on each chain to manage requests and callbacks, resulting in asynchronous execution and eventual consistency once the cross-chain protocol finalizes.
- iii.
- Off-chain conventional payments—Payments mediated by external financial systems (e.g., bank transfers) via HTTP APIs or web services. These are inherently asynchronous and non-atomic, requiring a two-phase interaction pattern (request and callback) to reconcile success or failure.
3.3. Payment Service Repository
- Semantic descriptors—Formal metadata capturing payment type (payable/receivable, on-chain, off-chain, cross-chain), expected currency or token, blockchain network identifiers, and compliance requirements.
- Method signatures—Information about the required method parameters (e.g., sender/receiver identifiers, amounts, currency codes), event callbacks, and expected outputs.
3.4. Transforming the Augmented BPMN Model into Smart Contracts
- BPMN augmentation: Generic payment task elements are replaced or extended with repository-selected BPMN fragments that represent concrete payment service invocation logic, preserving original sequencing and exception handling.
- DE-HSM conversion: The augmented BPMN model—now containing both business logic and payment semantics—is transformed to a DE-HSM multi-modal model. The DE layer captures event sequencing and concurrency, while HSM sub-models encode task execution semantics (both business and payment).
- Smart contract synthesis: Using the TABS transformation mechanism, each DE-HSM sub-model is translated into smart contract methods. Payment service invocation is realized by embedding calls to the deployed payment smart contracts (identified via repository metadata), using appropriate inter-contract communication patterns and callback interfaces where necessary.
- Deployment and runtime artifacts: The generated smart contracts are deployed to the target blockchain(s), and auxiliary APIs are produced to interface with the application layer. Integration with bridge/oracle services (for cross-chain rails) and off-chain callback handlers (for conventional payments) is managed via event listeners and workflow coordination logic.
3.5. End-to-End Process for the Use Case
3.5.1. Sample Use Case
- Before the insurance can take place, it must be paid, which is represented by the BPMN task element GenPayIns.
- Payment for the transport is performed once the transport is completed. The payment is represented by the GenPayTransp task element.
- Once the product is received, the buyer pays for the product, which is represented by the GenRcvePmnt BPMN task element.
3.5.2. Execution Environment
3.5.3. Payment Services and Repository
- Generic payment methods: Contain descriptions of various payment methods and identify which BPMN models utilize them.
- Deployed payment services: Store information on active deployed services and identify which of the generic counterparts use them.
3.5.4. Transformation of the BPMN Model and Execution
- RcveCrypto-MnCh … On-mainchain payment-receivable service.
- PayUSDXCrypto-StCn … Third-party payable service on the USDXCrypto-StCn stablecoin blockchain.
- PayUSDYCrypto-StCn … Third-party payable service on the USDYCrypto-StCn stablecoin blockchain.
- PayBankX-OffCh … Off-chain bank receivable service.
- GenPayIns … USDXCrypto-StCn—3rd-party payable service via the USDXCrypto-StCn blockchain.
- GenPayTransp … BankX-OffC—Off-chain bank receivable service.
- GenRcvePmnt … RcveCrypto-MnCh —On-mainchain payment-receivable service.
3.6. Discussion
4. Reuse and Extensibility with Settlement-Netting Payment Services
4.1. Settlement with Netting Aka Bulk Payments with Netting
- All of the payments due between participants are grouped together (bulk).
- The amounts owed between participants are offset (netting).
- The conditions for when netting payments are made are specified.
- Each participant pays or receives one net amount instead of many separate payments.
4.2. Payment Service for Settlements with Netting
4.2.1. Payments Between X and Y
4.2.2. Payment Service That Uses Settlement with Netting
4.3. Trading Activity Smart Contract Generation
4.4. Execution
4.5. Discussion
5. Related Work
5.1. Generation of Smart Contracts from BPMN Models
5.2. Smart Contract Upgradeability and Repair
5.3. Payment Rails for Smart Contracts in Blockchain Applications
6. Summary, Contributions, Future Work and Conclusions
6.1. Summary
6.2. Contributions
- Separation of concerns between trade activity modeling and payment implementation: Section 3.2 and Section 3.5 established a clear architectural separation where business analysts model trade activities and generic payments in BPMN, while software developers independently prepare reusable payment service smart contracts. This division of responsibilities enables domain experts to focus on business logic without requiring deep knowledge of payment rail implementation details.
- Repository-mediated transformation: Section 3.3 introduced the payment service repository as a critical intermediary that maintains structured metadata about deployed payment services, including semantic descriptors and method signatures. This repository enables automated matching and selection during transformation, serving as the knowledge base that connects business-level payment intent with technical payment execution.
- Multi-rail payment support: The sample use case in Section 3 demonstrated heterogeneous payment scenarios spanning on-chain native payments, third-party cross-chain stablecoin payments, and off-chain conventional banking transfers. This diversity illustrates the methodology’s adaptability to different business needs and technical constraints.
- Reuse and composition of patterns for extensibility of payment services: Section 4 established that complex payment services can be constructed by orchestrating simpler payment primitives through BPMN modeling and SCaaS transformation. The PaySetNet service demonstrated this by building sophisticated netting logic while invoking the existing StCnPayXY service, showing a clear path for extensibility without code duplication or the modification of existing services.
- Shared state management across participants: The PaySetNet service, in Section 4, illustrated how payment services can maintain a shared state (net positions for X and Y) that persists across multiple invocations from different trade processes and different participants, enabling sophisticated multi-party settlement patterns.
- Cross-platform payment service invocation: Section 4’s use case validated that payment services deployed on one blockchain can be reliably invoked from trade processes executing on heterogeneous blockchain platforms (Ethereum-based and Hyperledger Fabric-based), with the repository and helper contract infrastructure transparently managing platform-specific communication details.
- Incremental ecosystem growth: By showing how PaySetNet was added to the repository after development and immediately became available for use by both X and Y’s trade processes, Section 4 demonstrated the practical mechanics of payment service ecosystem expansion—new capabilities become available to all participants without requiring updates to existing services or trade processes.
6.3. Future Work
6.3.1. Identity Management for Smart Contracts in the Trade of Goods and Services
6.3.2. Compliance
6.3.3. Securing Smart Contract Methods
6.3.4. Validation and Verification
6.3.5. Discussion
6.4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Appendix A
- Appendix A.1. provides further information on the helper smart contracts described in Section 3.5.3.
- Appendix A.2. provides supplementary information and screenshots related to how the SCaaS tool is used.
Appendix A.1. Helper Smart Contracts

Appendix A.2. SCaaS Tool: Model Creation, Transformation, and Execution


References
- Mavridou, A.; Laszka, A. Designing secure Ethereum smart contracts: A finite state machine based approach. In Financial Cryptography and Data Security (FC); Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2018; Volume 10957, pp. 523–540. [Google Scholar]
- Liu, C.G.; Bodorik, P.; Jutla, D. Automated mechanism to support trade transactions in smart contracts with upgrade and repair. Blockchain: Res. Appl. 2025, 6, 100285. [Google Scholar] [CrossRef]
- Bank for International Settlements. Principles for Financial Market Infrastructures; BIS: Basel, Switzerland, 2012. [Google Scholar]
- SWIFT. Standards MT: General Information. 2020. Available online: https://www2.swift.com/knowledgecentre/rest/v1/publications/usgi_20200724/4.0/usgi_20200724.pdf (accessed on 12 March 2025).
- Narayanan, A.; Bonneau, J.; Felten, E.W.; Miller, A.; Goldfeder, S. Bitcoin and Cryptocurrency Technologies: A Comprehensive Introduction; Princeton University Press: Princeton, NJ, USA, 2016. [Google Scholar]
- Buterin, V. A Next-Generation Smart Contract and Decentralized Application Platform. Ethereum White Paper. 2014. Available online: https://ethereum.org/en/whitepaper/ (accessed on 4 February 2025).
- Szabo, N. Formalizing and securing relationships on public networks. First Monday 1997, 2, 9. [Google Scholar] [CrossRef]
- Narayanam, K.; Ramakrishna, V.; Nishad, S. Atomic cross-chain exchanges of shared assets. In Proceedings of the 4th ACM Conference on Advances in Financial Technologies (AFT); Association for Computing Machinery: New York, NY, USA, 2022; pp. 148–160. [Google Scholar]
- Zamyatin, A.; Al-Bassam, M.; Zindros, D.; Kokoris-Kogias, E.; Moreno-Sanchez, P.; Kiayias, A.; Knottenbelt, W.J. SoK: Communication across distributed ledgers. In Financial Cryptography and Data Security (FC); Springer: Berlin/Heidelberg, Germany, 2021. [Google Scholar]
- Wood, G. Polkadot: Vision for a Heterogeneous Multi-Chain Framework. Web3 Foundation. 2016. Available online: https://polkadot.network/whitepaper/ (accessed on 18 January 2026).
- Garratt, R.; Shin, H.S. Stablecoins: Risks, potential and regulation. In BIS Quarterly Review; BIS: Basel, Switzerland, 2020. [Google Scholar]
- Belchior, R.; Vasconcelos, A.; Guerreiro, S.; Correia, M. A survey on blockchain interoperability: Past, present, and future trends. ACM Comput. Surv. 2021, 54, 168. [Google Scholar] [CrossRef]
- Pahl, C.; El Ioini, N.; Helmer, S. Semantic richness in financial transactions. IEEE Softw. 2019, 36, 16–22. [Google Scholar]
- Weber, I.; Staples, M. Programmable Money: Next-generation Conditional Payments using Blockchain. In Proceedings of the 11th International Conference on Cloud Computing and Services Science (CLOSER 2021), Prague, Czech Republic, 23–25 April 2021; pp. 7–14. [Google Scholar]
- ISO/IEC Std. 19510:2013; Information Technology—Object Management Group Business Process Model and Notation (BPMN). International Organization for Standardization and International Electrotechnical Commission: Geneva, Switzerland, 2013.
- Object Management Group. Decision Model and Notation (DMN), Version 1.5; OMG Standard: Milford, MA, USA, 2023. [Google Scholar]
- López-Pintado, M.; García-Bañuelos, L.; Mendling, J.; Weber, I. Caterpillar: A business process execution engine on the Ethereum blockchain. In Business Process Management (BPM); Springer: Cham, Switzerland, 2017; pp. 87–103. [Google Scholar]
- López-Pintado, M.; García-Bañuelos, L.; Weber, I. Lorikeet: A model-driven engineering tool for blockchain-based business processes. Softw. Pract. Exp. 2019, 49, 1453–1477. [Google Scholar] [CrossRef]
- Weber, I.; Xu, X.; Riveret, R.; Governatori, G.; Ponomarev, A.; Mendling, J. Untrusted business process monitoring and execution using blockchain. In Business Process Management (BPM); Springer: Cham, Switzerland, 2016; pp. 329–347. [Google Scholar]
- Dalhousie Blockchain Lab. Dalhousie Blockchain Lab: Executive Summary. 2024. Available online: https://blockchain.cs.dal.ca (accessed on 15 October 2025).
- Gudgeon, L.; Moreno-Sanchez, P.; Roos, S.; McCorry, P.; Gervais, A. SoK: Off the Chain Transactions. IACR Cryptology ePrint Archive, Paper 2020/112, 2020. Available online: https://eprint.iacr.org/2019/360.pdf (accessed on 15 October 2025).
- W3C. Semantic Annotations for WSDL and XML Schema (SAWSDL). W3C Recommendation REC-sawsdl-20070828, 2007. Available online: https://www.w3.org/TR/sawsdl/ (accessed on 15 October 2025).
- Liu, C.G.; Bodorik, P.; Jutla, D. Smart contracts for SMEs and large companies. In Proceedings of the 2024 IEEE Virtual Conference on Communications (VCC); IEEE: Piscataway, NJ, USA, 2024; pp. 1–7. [Google Scholar] [CrossRef]
- Liu, C.G.; Bodorik, P.; Jutla, D. BPMN model to smart contract by business analyst. In Proceedings of the 2025 5th Intelligent Cybersecurity Conference (ICSC); IEEE: Piscataway, NJ, USA, 2025; pp. 122–129. [Google Scholar] [CrossRef]
- DigitalOcean. Available online: https://www.digitalocean.com/ (accessed on 18 January 2026).
- Camunda. Camunda Platform: Workflow and Decision Automation. Available online: https://camunda.com/ (accessed on 18 January 2026).
- Kenton, W. Multilateral Netting. Investopedia. 2025. Available online: https://www.investopedia.com/terms/m/multilateral-netting.asp (accessed on 18 January 2026).
- Tran, A.; Lu, Q.; Weber, I. Lorikeet: A model-driven engineering tool for blockchain-based business process execution and asset management. In Business Process Management (BPM); Springer: Cham, Switzerland, 2018. [Google Scholar]
- Loukil, F.; Boukadi, K.; Abed, M.; Ghedira-Guegan, C. Decentralized collaborative business process execution using blockchain. World Wide Web 2021, 24, 1645–1663. [Google Scholar] [CrossRef]
- Di Ciccio, C.; Cecconi, A.; Mendling, J. Blockchain support for collaborative business processes. Bus. Process Manag. J. 2019, 25, 1–24. [Google Scholar] [CrossRef]
- Possik, J.J.; Amrani, A.; D’Ambrogio, A.; Zacharewicz, G. A BPMN/HLA-based methodology for collaborative distributed discrete-event simulation. In Proceedings of the 2019 IEEE 28th International Conference on Enabling Technologies: Infrastructure for Collaborative Enterprises (WETICE); IEEE: Piscataway, NJ, USA, 2019; pp. 118–123. [Google Scholar]
- Meisami, S.; Bodell, W.E., III. A comprehensive survey of upgradeable smart contract patterns. arXiv 2023, arXiv:2304.03405. [Google Scholar] [CrossRef]
- Girish, N.M.; Kaganurmath, S. Upgradability of smart contracts: A review. Int. Res. J. Eng. Technol. 2022, 9, 2603–2606. [Google Scholar]
- Palladino, S. The State of Smart Contract Upgrades. OpenZeppelin Blog. 2018. Available online: https://blog.openzeppelin.com/the-state-of-smart-contract-upgrades (accessed on 18 January 2026).
- Rodler, M.; Li, W.; Karame, G.O.; Davi, L. EVMPatch: Timely and automated patching of Ethereum smart contracts. In 30th Usenix Security Symposium (USENIX Security 21); USENIX Association: Berkeley, CA, USA, 2021; pp. 1289–1306. [Google Scholar]
- Li, Z.; Zhou, Y.; Guo, S.; Xiao, B. SolSaviour: A defending framework for deployed defective smart contracts. In Proceedings of the 37th Annual Computer Security Applications Conference; Association for Computing Machinery: New York, NY, USA, 2021; pp. 748–760. [Google Scholar] [CrossRef]
- Corradini, F.; Marcelletti, A.; Morichetta, A.; Polini, A.; Re, B.; Tiezzi, F. Engineering trustable choreography-based systems using blockchain. In Proceedings of the 35th Annual ACM Symposium on Applied Computing; Association for Computing Machinery: New York, NY, USA, 2020; pp. 1470–1479. [Google Scholar] [CrossRef]
- Corradini, F.; Marcelletti, A.; Morichetta, A.; Polini, A.; Re, B.; Tiezzi, F. Flexible execution of multi-party business processes on blockchain. In Proceedings of the 5th International Workshop on Emerging Trends in Software Engineering for Blockchain; Association for Computing Machinery: New York, NY, USA, 2022; pp. 25–32. [Google Scholar]
- Falazi, G.; Hahn, M.; Breitenbücher, U.; Leymann, F. Modeling and execution of blockchain-aware business processes. Softw.-Intensive Cyber-Phys. Syst. 2019, 34, 105–116. [Google Scholar] [CrossRef]
- Klinger, P.; Nguyen, L.; Bodendorf, F. Upgradeability concept for collaborative blockchain-based business process execution framework. In Blockchain—ICBC; Springer: Cham, Switzerland, 2020; pp. 127–141. [Google Scholar]
- López-Pintado, L.; Mendling, J.; Weber, I. Dynamic role binding in blockchain-based business processes. In Advanced Information Systems Engineering; Springer: Cham, Switzerland, 2018; pp. 77–89. [Google Scholar]
- Jin, J.; Yan, L.; Zou, Y.; Li, J.; Yu, Z. Research on smart contract verification and generation method based on BPMN. Mathematics 2014, 12, 2158. [Google Scholar] [CrossRef]
- Werbach, K.; Cornell, N. Contracts ex machina. Duke Law J. 2017, 67, 313–382. [Google Scholar]
- Financial Action Task Force. Updated Guidance for a Risk-Based Approach to Virtual Assets and Virtual Asset Service Providers. 2021. Available online: https://www.fatf-gafi.org (accessed on 18 January 2026).
- Ferdous, M.S.; Chowdhury, F.; Alassafi, M.O. In search of self-sovereign identity leveraging blockchain technology. IEEE Access 2019, 7, 103059–103079. [Google Scholar] [CrossRef]
- Mavridou, A.; Laszka, A. Tool demonstration: FSolidM for designing secure Ethereum smart contracts. In Principles of Security and Trust (POST); Lecture Notes in Computer Science; Springer: Cham, Switzerland, 2018; Volume 10804, pp. 217–227. [Google Scholar]
- Mavridou, A.; Laszka, A.; Stachtiari, E.; Dubey, A. VeriSolid: Correct-by-design smart contracts for Ethereum. In Financial Cryptography and Data Security (FC); Springer: Cham, Switzerland, 2019; pp. 446–465. [Google Scholar]









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. |
© 2026 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.
Share and Cite
Liu, C.G.; Bodorik, P.; Jutla, D. Payment Rails in Smart Contract as a Service (SCaaS) Solutions from BPMN Models. Future Internet 2026, 18, 110. https://doi.org/10.3390/fi18020110
Liu CG, Bodorik P, Jutla D. Payment Rails in Smart Contract as a Service (SCaaS) Solutions from BPMN Models. Future Internet. 2026; 18(2):110. https://doi.org/10.3390/fi18020110
Chicago/Turabian StyleLiu, Christian Gang, Peter Bodorik, and Dawn Jutla. 2026. "Payment Rails in Smart Contract as a Service (SCaaS) Solutions from BPMN Models" Future Internet 18, no. 2: 110. https://doi.org/10.3390/fi18020110
APA StyleLiu, C. G., Bodorik, P., & Jutla, D. (2026). Payment Rails in Smart Contract as a Service (SCaaS) Solutions from BPMN Models. Future Internet, 18(2), 110. https://doi.org/10.3390/fi18020110

