Abstract
Web-based business processes often suffer from "improper browsing" behaviors, such as the use of the back button or session expirations, which can lead to process incoherencies. This paper presents a conceptual framework for managing these exceptions by extending the Web Modeling Language (WebML). By introducing high-level primitives and structured recovery policies, the framework allows designers to specify robust error-handling logic for complex Web applications without manual, low-level coding.
Introduction
Traditional Workflow Management Systems (WfMS) operate in controlled environments where user actions are strictly sequenced. However, porting these processes to the Web introduces a "loose" interaction model. Web browsers allow users to navigate non-linearly, open multiple sessions, or abandon transactions abruptly. These actions create exceptions that can leave process instances in inconsistent states. This research addresses the gap between data-centric Web design and process-centric workflow management by providing a structured approach to detect and recover from such incoherencies.
The Problem of Improper Browsing
In a Web-based workflow, a user might hit the "back" button and resubmit a form, potentially triggering a process activity twice. Alternatively, closing a browser mid-transaction might leave a process instance "hanging." These "synchronous" and "asynchronous" exceptions require specific handling strategies to maintain data integrity and process flow.
Methodology: Extending WebML
The proposed solution builds upon the Web Modeling Language (WebML), incorporating workflow-specific concepts aligned with Workflow Management Coalition (WfMC) standards.
Metadata Extension
To track the state of a process, the underlying data model is enriched with specific entities. As shown in Figure 5, the model includes Process, Case (representing a process instance), ActivityInstance, and CurrentStep.
The CurrentStep entity is particularly crucial; it tracks the last page generated by the server. If a user attempts to perform an action from a cached "old" page (via the back button), the system detects a "Wrong Starting Page" exception by comparing the request origin with the CurrentStep.
Recovery Policies and Compensation
The framework defines three primary "off-the-shelf" recovery strategies:
- Accept (Forward): The halted activity is marked as complete, and the process proceeds. This is suitable for non-critical tasks.
- Reject (Backward): This policy performs a pragmatic rollback by deleting data created during the current activity (tracked via a "Created" relationship) and resetting the activity to "inactive."
- Resume (Backward): This allows users to return to the last valid step reached, which is ideal for long forms.
For more complex scenarios, designers can model "compensation chains"—automated sequences of operations triggered by specific error events.
Implementation and Validation
The framework was integrated into WebRatio, a commercial tool for generating Web applications from conceptual models. Its effectiveness was validated through real-world B2B projects, such as the MetalC Project, which involved intricate quote-and-offer workflows for Italian mechanical companies.
In these projects, different policies were applied based on task criticality. For instance, the "Reject" policy ensured data integrity during order submissions, while "Resume" was vital for user-friendly self-registration. The primary benefit observed was design efficiency: developers could specify complex error-handling logic at a high conceptual level rather than writing custom recovery code for every activity.
Conclusion
By acknowledging the inherent freedom of Web users while providing robust safety nets, this framework bridges the gap between Web design and workflow management. Future work will focus on making exception handling more transparent to designers and extending the model to handle exceptions in remote service calls (Web Services), which introduce additional external failure points.
Summary updated