CLIENT: "We need to bring order and control to our business trips. We have no unified process, and it often happens that employees leave on trips that are not justified or approved. The company unnecessarily loses money on accommodation and transport, not to mention the wasted time of our people. We want a system that ensures the process goes through proper approval according to our internal rules while being simple for the user."
The project focuses on introducing a system in an environment where the absence of clear rules led to inefficient spending of company resources. A control layer is implemented as part of the solution, which consistently monitors compliance with internal business trip policies and brings the necessary order to the process.
From a business perspective, the process focuses primarily on eliminating unauthorized costs. The system immediately filters requests and, for risky or over-limit cases, automatically enforces approval by the appropriate authority – whether it's a direct supervisor, the HR department, or the CFO. The key benefit of the solution is a radical shortening of the approval cycle for standard trips, while for expensive trips, it is guaranteed that no binding reservation of accommodation or transport occurs without validation by the relevant manager.
The entire process is designed to be fully auditable. All information about the approval progress is logged to the database in real-time. The system archives the complete history: from who filled out the request and when, through detailed records of which approver commented on the request, to the exact time and justification of approval or rejection. The client thus gains a tool that not only saves money but also returns time to management, who previously struggled with disorganized email communication, while providing a perfect overview for subsequent audits.
The proposed solution utilizes orchestration within the Flowable Engine with full support for BPMN 2.0 and DMN 1.1 standards. The architecture is conceived as an asynchronous state machine that receives a complex JSON object representing the travel entity on input. In the initial phase, the process uses the Data Preparation module to normalize input data into process variables that the engine subsequently operates with.
The core of the solution is the parallel evaluation of business rules using a Parallel Gateway, which simultaneously activates three independent Business Rule Tasks. These tasks call specific DMN tables for assessing costs (Cost Decision), destination (Country Decision), and duration (Length Decision). The outputs from these tables are then aggregated and processed within an Inclusion Gateway. This approach ensures that process branching occurs based on specific approval positions (Manager, CFO, HR, Compliance) – if a given role is required for multiple parameters simultaneously, it is activated exactly once within a single process instance, maximizing workflow efficiency.
To ensure process integrity, Timer Boundary Events are attached to the approval tasks to automatically monitor SLAs. After 24 hours of inactivity, the system sends reminders, and after 72 hours, the process automatically terminates in the Auto Rejection branch. The entire solution is fully integrable via REST API, while the strict separation of logic into DMN tables allows management to change approval limits without the need to modify the process model itself.
Note: For simplification, logging and error handling are not shown in this diagram.
| Project Type | Business Process Automation |
| Area | Workflow / Finance |
| Technologies Used | Flowable, BPMN 2.0, PostgreSQL, REST API |
| Implementation Time | 2 weeks |
| Result | Transparent and auditable system |