-- Simple reconfiguration that switches to the Weather Underground meteo service action switchToWundergroundService() { orchestration = $domain/scadescendant::orchestration; weatherRef = $orchestration/scareference::weather; wsBinding = $weatherRef/scabinding::*; remove-scabinding($weatherRef, $wsBinding); wunderground = $domain/scadescendant::wunderground; myWeather = $domain/scachild::myWeather; add-scachild($myWeather, $wunderground); set-state($orchestration, "STOPPED"); wundergroundService = $wunderground/scaservice::*; add-scawire($weatherRef, $wundergroundService); set-state($orchestration, "STARTED"); }