Modern software development faces a fundamental tension: the conflict between the rigid requirements of structured business workflows and the unpredictable, "free-roaming" nature of the Web. In their research presented at WWW 2005, researchers from Politecnico di Milano addressed this "loose control" problem, proposing a high-level framework for managing exceptions in workflow-driven Web applications.
The Challenge of "Loose Control"
Traditional workflow management systems (WFMS) were designed for controlled environments where users follow a strict, linear sequence of tasks. However, when business processes—such as loan applications or B2B procurement—move to the Web, they encounter unique behavioral challenges. Web browsers empower users to navigate backward, clone tabs, or leave sessions idle until they time out.
These actions can lead to inconsistent process states. For instance, a user might accidentally submit a form twice by navigating back and clicking "submit" again, or they might attempt to complete a task after the server has already moved the process instance forward. Standard error handling often fails to capture these behavioral anomalies, leaving the system in an uncertain or corrupted state.
A Framework for Exception Management
The authors introduce a conceptual approach to exception handling that is decoupled from the main process logic, consisting of three primary pillars: classification, metadata modeling, and modeling primitives.
1. Classification of Exceptions
Exceptions are categorized based on their source to determine the appropriate recovery strategy:
- Behavioral: User-generated errors like improper navigation (e.g., using the back button to repeat a completed task).
- Semantic: Application-level failures, such as a credit check being rejected or a sudden change in interest rates.
- System: Infrastructure failures like network timeouts or browser crashes.
2. Metadata Modeling
To detect and manage these exceptions, the authors extend the standard Entity-Relationship (E-R) model to track the state of every "Case" (process instance).
As shown in the meta-model above, the system tracks the "Current Page" generated for a specific activity instance. This allows the application to detect if a user is trying to interact with an "old" version of the process (e.g., via the back button). By tracking which database objects were "Created" during a specific activity, the system can also perform automated clean-ups if a task is rejected or aborted.
3. Modeling Primitives in WebML
The framework introduces new components into the Web Modeling Language (WebML) to handle exceptions without cluttering business logic:
- Exception-aware links (E-links): Navigational links that automatically check for pending exceptions before proceeding.
- Exception Control Units: Components placed on generic pages to catch asynchronous exceptions (like background service notifications) and redirect users to recovery pages.
- Predefined Recovery Policies: Five "macro" operations: Accept (force completion), Reject (delete data and restart), Abort (terminate), Ignore (notify and continue), and Resume (return to the last valid state).
Validation: The Loan Request Case Study
The authors validated their approach using a detailed multi-actor Loan Request process. This case study involves customers searching for and requesting loans, followed by internal validation and approval steps by managers and employees.
In this scenario, the framework handles various exceptions. For example, if a manager is performing a "Preliminary Validation" and the session times out, a Resume policy allows them to return to the exact state of the validation form upon re-login. If a customer uses the back button to try and alter a "Loan Request" that has already been submitted to the manager, the system detects the mismatch via the metadata layer and prevents the inconsistent update.
Industrial Application and Key Insights
The framework was implemented in industrial pilot projects, including the Acer Business Portal and MetalC. These implementations demonstrated several key advantages:
- The "Back Button" as a First-Class Citizen: Instead of attempting to disable browser features, the system treats improper navigation as a detectable event that triggers specific recovery logic.
- Decoupling Logic: By using E-links and a parallel metadata layer, designers do not need to manually insert "if-error" checks into every part of the business logic.
- Automatic Code Generation: The concepts were integrated into WebRatio, a CASE tool, allowing for the automatic generation of exception detection and recovery code.
Conclusion
By treating web-specific behaviors as manageable exceptions rather than technical errors, this framework provides a robust way to maintain process integrity in the "loose" environment of the Web. While the authors focused on high-level process coherence rather than low-level database transactions, the approach offers a powerful abstraction for building resilient, workflow-driven Web applications.
Summary updated