Deliverable · WP2
D2.3: orchestration of distributed IoT service interactions
The WP2 report that weighed orchestration against choreography for IoT services and settled on a four-phase model: modelling, resolution, binding, execution.
- Deliverable
- D2.3
- Work package
- WP2 · Processes and service orchestration
- Issued
- March 2012
- Pages
- 75
- Editor
- Stefan Meissner (UNIS)
- Delivered
- 15 March 2012
A pot of rare Chinese orchids sits on a supermarket shelf, and sensors measure the light, humidity and temperature around it. When the readings suggest the flowers will soon lose quality, the store’s backend lowers the price at the till before any shopper could notice a wilting leaf. If the quality factor falls below a threshold, the system triggers removal from the shelf. That small retail scenario, taken from the project’s use case work, is the test bench on which D2.3 argues its main point.
The deliverable was edited by Stefan Meissner of the University of Surrey (UNIS), with contributions from SAP and NEC. Its contractual date was the end of February 2012; the version history shows it was handed in on 15 March 2012. Like the other reports in the deliverables library, it belongs to a work package, here work package 2, the part of IoT-A that dealt with connecting real-world services to business processes, and it picks up where the modelling concepts of D2.2 left off.
The question the document answers
How should a business process call services that run on sensors and actuators, when those services may move, fail or disappear while the process is running? Classic enterprise orchestration assumes that a service endpoint is known when the process is designed. In an Internet of Things that assumption breaks, because the device behind the endpoint can be switched off, carried away or replaced.
D2.3 treats this as a design problem with two candidate answers. Orchestration keeps one central coordinator that calls every service in turn. Choreography lets the participants coordinate among themselves, with no single conductor.
Orchestration or choreography
The first long chapter redesigns the orchid process both ways. The choreography version comes out ahead on paper: it respects distributed data and execution, scales better, and follows the augmented entity through its whole life, from distribution centre to shop to the buyer’s home. The authors then hold back. Choreography would need far more capable devices, with more memory, more computing power and more application logic on board, and at the time that was too expensive in cost, size and energy for every tagged object. They compare the situation to the debate about RFID tag prices a decade earlier, which cheap tags eventually ended.
The recommendation is plain. Use choreography only where a use case truly needs it, and prefer orchestration otherwise. Everything after chapter two is about orchestration, with further choreography research recommended rather than attempted.
What existing tools could and could not do
Chapter three surveys three open-source BPMN engines (Activiti, Bonita Open Solution and jBPM), web service composition systems, and related research. Chapter four then scores the most promising concepts against requirements collected by work package 6. The evaluation table is the most useful page for anyone choosing a process engine for sensor data even today.
Its verdict on BPMN and BPEL is sharp. These languages model control flow and data flow very well but carry no semantics, so a process cannot say that a task needs a service attached to a particular Virtual Entity, or to any entity of a given class. The example used is street lighting: a rule that every street light turns on when daylight fades should be written once, not once per lamp. BPMN also has no discovery step, because it assumes every service already exists. The GCSP approach handles discovery but lacks self-repair. The SENSEI project’s Semantic Query Resolver came closest and was proposed as the basis for an IoT-A orchestrator, extended from input-output matching to preconditions and effects so that actuation could be handled.
The four-phase model
The core contribution is a phase model for every BPMN activity that touches the physical world. Modelling describes the task in an IoT-aware BPMN process. Resolution finds currently available services that can do the job, using the Virtual Entity resolution and IoT service resolution being built in work package 4. Binding assigns one service, or the atomic services of a composite one, to the task. Execution invokes it.
The modelling step reuses notation proposed by Sperner, Meyer and Magerkurth in 2011: a SensingTask marked with a gauge icon, an ActuationTask marked with a robot arm, and a PhysicalObject drawn as a brick and linked by a PhysicalAssociation whose arrow shows which way information flows. Endpoints are left abstract and described declaratively with ontologies and SPARQL. One worked query selects any room whose coordinates fall inside a latitude and longitude box around Zurich.
Self-healing, and what was left open
The last technical chapter sketches the self-properties of autonomic computing. Its most concrete figure shows a self-healing subscription: when a sensor service vanishes, the resolution infrastructure notices, the orchestrator is told that its association is no longer valid, it repeats resolution with the stored specification and, if a replacement exists, the process keeps receiving notifications without ever learning of the gap. Self-optimisation and self-protection were explicitly deferred to D2.5.
Read today, the document is worth an afternoon for architects who connect workflow engines to device fleets. The phase model maps onto the IoT Process Management and Service Organisation groups of the architectural reference model, and the street-light argument about class-level tasks is still a fair test for any low-code IoT platform. Terms such as Virtual Entity and augmented entity are defined in the domain model glossary.
One line in the outlook deserves a second look. The authors note that the orchid exists before and after the store, and that a centralised orchestrator only ever sees one stretch of its life.