MarcoFlow: Modeling, Deploying, and Running Distributed User Interface Orchestrations

Florian Daniel, Stefano Soi, Stefano Tranquillini, Fabio Casati, Heng Chang, Yan LiBPM (Demos) 2010

Abstract

MarcoFlow is a framework designed to bridge the gap between back-end business process orchestration and front-end web mashups. By extending the BPEL standard into BPEL4UI, it enables the coordination of distributed UI components, web services, and human actors across multiple web pages within a single integrated logic. This paper details the modeling, deployment, and execution phases of the MarcoFlow lifecycle, demonstrating a unified approach to distributed UI orchestration.

Introduction

The integration of Business Process Management (BPM) with modern web interfaces remains a significant challenge. While standards like BPEL are robust for back-end service orchestration, they often treat the User Interface (UI) as an external, disconnected entity. Conversely, web mashups provide rich UI-level integration but often lack the complex navigation, multi-user support, and long-running logic required for enterprise-grade applications. MarcoFlow addresses this by enabling "distributed UI orchestrations"—applications that combine the process-driven rigor of BPM with the component-based flexibility of web mashups.

Modeling with BPEL4UI

The core of MarcoFlow is the BPEL4UI metamodel, which extends the industry-standard Business Process Execution Language (BPEL) with UI-specific constructs. This allows developers to use familiar concepts like variables and sequences while adding necessary hooks for web pages and layout templates.

The BPEL4UI metamodel extending standard process logic with UI-specific elements like Pages, PlaceHolders, and UIComponents.

As shown in the metamodel, key new elements include:

  • Pages: The primary containers for the UI.
  • PlaceHolders: Specific regions within a page (e.g., a div with a specific ID) for content placement.
  • UIComponents: Treated similarly to web services but bound to client-side JavaScript functions via WSDL descriptors.
  • Actors: Human participants interacting with the pages.

The MarcoFlow Toolchain

The MarcoFlow framework supports the entire software development lifecycle, from initial design to distributed runtime execution.

The MarcoFlow toolchain architecture, illustrating the transition from design-time modeling to deployment and distributed execution.
  1. Design Time: Developers use a visual editor (based on Eclipse) to define BPEL4UI processes, configuring UI partner links and layouts.
  2. Deployment Time: A compiler translates these specifications into executable artifacts: a standard BPEL process for back-end logic and a set of "UI compositions" for the front-end.
  3. Runtime: The environment manages coordination across two layers. Intra-page synchronization is handled in the browser via an event-based JavaScript framework (UI event bus). Distributed orchestration is managed by a standard BPEL engine that communicates with a specialized "UI engine server" to synchronize events across different users and pages.

Key Insights

  • UI as a First-Class Citizen: By describing UI components using standard WSDL descriptors, MarcoFlow treats a JavaScript widget with the same formal respect as a heavy-duty back-end SOAP service.
  • Layered Coordination: The system bridges event-driven UI interactions (clicks, keystrokes) with flow-driven business processes by separating local browser events from global state management.
  • Standardization over Invention: Extending BPEL rather than creating a new language allows for the reuse of existing tools and developer expertise.

Results and Validation

The authors successfully implemented the complete MarcoFlow toolchain. While the paper does not focus on quantitative datasets, the framework was validated through a "home assistance management" demo scenario. This proof of concept demonstrated that the system can handle complex, multi-user, multi-page process logic—such as interactions between patients and healthcare providers—with minimal manual coding.

Limitations and Future Work

Current limitations include a reliance on predefined HTML templates, which restricts layout flexibility to specific div IDs. Additionally, the manual effort required to create WSDL-to-JavaScript mappings for complex third-party widgets could be a development bottleneck. Future research should provide quantitative performance data regarding the scalability of the UI engine server under high volumes of concurrent users and complex event synchronization.

Summary updated

BibTeX
@inproceedings{daniel2010marcoflow,
  author = {Florian Daniel and Stefano Soi and Stefano Tranquillini and Fabio Casati and Heng Chang and Yan Li},
  title = {{MarcoFlow: Modeling, Deploying, and Running Distributed User Interface Orchestrations}},
  booktitle = {BPM (Demos)},
  year = {2010},
}
Figure