{"id":566,"date":"2025-09-18T07:40:06","date_gmt":"2025-09-18T07:40:06","guid":{"rendered":"https:\/\/vsr.dev\/demo-projects\/iwc-loops\/"},"modified":"2026-08-26T19:22:45","modified_gmt":"2026-08-26T19:22:45","slug":"implicit-inter-widget-communication-loops-detection-facilities","status":"publish","type":"demo_project","link":"https:\/\/vsr.informatik.tu-chemnitz.de\/demos\/iwc-loops\/","title":{"rendered":"Implicit Inter-Widget Communication: Loops Detection Facilities"},"content":{"rendered":"\n<div class=\"wp-block-vsr-blocks-header\">\n\t<h2 class=\"linie\">\n\t\tIntroduction\t<\/h2>\n\t<\/div>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:66.66%\">\n<p class=\"wp-block-paragraph\">The mashups utilizing PubSub-based inter-widget communication approach do not require users to establish connections between widgets explicitly. Communication, i. e. data and control flows emerge as soon as widgets are put together in a workspace (so called <em>choreographed user interface mashups<\/em>, cf. <a href=\"https:\/\/vsr.informatik.tu-chemnitz.de\/demos\/iwc-loops.html#ref-choreographed-widgets\">[1]<\/a>). Technically, this is achieved by employing the event-driven approach via publish-subscribe messaging pattern (pub\/sub): widgets autonomously subscribe and publish messages on different communication channels, so-called topics. A message bus running within a browser takes care of delivering messages to all interested parties, i. e., widgets subscribed to the corresponding topics.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:33.33%\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"510\" src=\"https:\/\/vsr.informatik.tu-chemnitz.de\/wp-content\/uploads\/2025\/09\/screenshot_small-1024x510.jpg\" alt=\"\" class=\"wp-image-5092\" srcset=\"https:\/\/vsr.informatik.tu-chemnitz.de\/wp-content\/uploads\/2025\/09\/screenshot_small-1024x510.jpg 1024w, https:\/\/vsr.informatik.tu-chemnitz.de\/wp-content\/uploads\/2025\/09\/screenshot_small-300x149.jpg 300w, https:\/\/vsr.informatik.tu-chemnitz.de\/wp-content\/uploads\/2025\/09\/screenshot_small-768x383.jpg 768w, https:\/\/vsr.informatik.tu-chemnitz.de\/wp-content\/uploads\/2025\/09\/screenshot_small.jpg 1062w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">In some situations, however, such messaging approach may lead to malfunctioning compositions, for example the ones producing infinite message transfer or self-reinforcing loops. This in turn can cause unexpected and undesirable effects or even a crash of the run-time environment. Such a loop-producing mashup could be, for example, a workspace containing the following 3 widgets:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An emergency map widget M showing locations of emergency incidents in some city. The widget enables one to point a map to certain location and publishes details of all emergency incidents in the area (e.g. street name, incident description etc., topic \u201chttp:\/\/example.org\/incidents\u201d). The map is simultaneously subscribed to messages containing GPS coordinates which should act as a center position of the map (topic \u201chttp:\/\/example.org\/gps\u201d).<\/li>\n\n\n\n<li>A widget D showing a table overview of the emergency incidents (received over the topic \u201chttp:\/\/example.org\/incidents\u201d) and publishes immediately addresses of the nearest hospitals (\u201chttp:\/\/example.org\/hospitals\u201d).<\/li>\n\n\n\n<li>A widget H shows a table overview of hospitals (received over the topic \u201chttp:\/\/example.org\/hospitals\u201d) and publishes immediately GPS coordinates of the calculated center position of all hospitals (topic \u201chttp:\/\/example.org\/gps\u201d).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Such a composition causes a self-reinforcing loop as soon as the map focus is moved. The Incidents-message produced by M is delivered to D, which immediately responses with a Hospitals-message to H. The H-widget produces a GPS-message which is delivered to M causing it to move the focus and therefore to repeat emission of an Incident-message. Being executed in a browser, the loop can block the UI or cause a complete crash. To increase the end-user and developer awareness of such undesirable situations and to enable them to prevent\/recover from such situations, following artifacts\/software artifacts have been developed:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>IWC implementation guidelines (support developers in developing loop-preventing widgets)<\/li>\n\n\n\n<li>Static analysis of workspaces (support users in detection of potential loops before the communication starts)<\/li>\n\n\n\n<li>Runtime analysis of IWC traffic (support users in detection and recovery of loops as soon as they emerge)<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The details of the approach are described in the D2.3 &#8211; Final specification of Mashup description language and Telco mashup architecture, a public deliverable of the OMELETTE project.<\/p>\n\n\n\n<div class=\"wp-block-vsr-blocks-header\">\n\t<h2 class=\"linie\">\n\t\tScreencast\t<\/h2>\n\t<\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Loop Detection in Publish-Subscribe-based User Interface Mashups\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/fXck6Wge2HA?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-vsr-blocks-header\">\n\t<h2 class=\"linie\">\n\t\tFurther Readings\t<\/h2>\n\t<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">[1] Scott Wilson, Florian Daniel, Uwe Jugel and Stefano Soi. Orchestrated User Interface Mashups Using W3C Widgets. ICWE 2011 Workshops, June 2011, Springer, Pages 49\u201361.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[2] The OMELETTE Project (FP7\/2010-2013 GA n 257635). D2.3 &#8211; Final specification of Mashup description language and Telco mashup architecture. Public deliverable, 2013.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The mashups utilizing PubSub-based inter-widget communication approach do not require users to establish connections between widgets explicitly. Communication, i. e. data and control flows emerge as soon as widgets are put together in a workspace (so called choreographed user interface mashups, cf. [1]). Technically, this is achieved by employing the event-driven approach via publish-subscribe messaging [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9138,"template":"","meta":{"demo_code":"IWC-LOOPS","demo_summary":"Demonstration of loops detection facilities for implicitely wired user interface mashups","migration_allowed":true,"breadcrumb_parent":80,"footnotes":""},"demo_category":[25],"class_list":["post-566","demo_project","type-demo_project","status-publish","has-post-thumbnail","hentry","demo_category-linking-and-intercomponent-communication"],"meta_box":{"demo_code":"IWC-LOOPS","demo_summary":"Demonstration of loops detection facilities for implicitely wired user interface mashups","migration_allowed":"1","breadcrumb_parent":80,"demo_project_authors_to":["24127","24112","24113","24098","18949"]},"_links":{"self":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/demo_project\/566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/demo_project"}],"about":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/types\/demo_project"}],"author":[{"embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"version-history":[{"count":6,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/demo_project\/566\/revisions"}],"predecessor-version":[{"id":26056,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/demo_project\/566\/revisions\/26056"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=\/wp\/v2\/media\/9138"}],"wp:attachment":[{"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=566"}],"wp:term":[{"taxonomy":"demo_category","embeddable":true,"href":"https:\/\/vsr.informatik.tu-chemnitz.de\/index.php?rest_route=%2Fwp%2Fv2%2Fdemo_category&post=566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}