WLDT Library Version 0.9.0

November 27, 2026 ‐ 3 min read

Version 0.9.0 is a breaking release that changes how the Digital Twin State moves inside a Digital Twin, how stored data are queried and how components choose what they want to observe.

Key Updates:

  • State propagation on the Event Bus: the complete DigitalTwinState does not travel anymore. It is split into a description (the structure, with a unique id) and values (only what changed), published on two separate topics, dt.state.description.update and dt.state.values.update
  • Local copy of the state: every observer keeps its own complete and up to date copy, through the new class DigitalTwinStateReplica
  • New declarative Query System: the immutable Query object (filters, sorting, paging, aggregations, total count and timeout) replaces QueryRequest, and a custom WldtStorage implements the single method execute(Query)
  • State Filters: Digital Adapters and Augmentation Functions choose when they are notified of a values update and which part of the values they receive
  • Digital Adapter: onStateUpdate is replaced by onStateDescriptionUpdate and onStateValuesUpdate
  • Life cycle: STARTED is now always notified before the Physical and Digital Adapters are executed
  • Monitoring: new metrics for the description updates and for the description writes of the storage
  • Removed: the constructors that set only the semantic type, deprecated in 0.8.1
  • Fixes: a failing Event Bus subscriber no longer stops the delivery of the following events, no more busy wait at the start of the life cycle, and several fixes on query listeners, monitoring and un-synchronization

Migrating from 0.8.1

All the Digital Twins written for previous versions must be migrated: Shadowing Functions, Digital Adapters, Augmentation Functions, custom storages and query managers, life cycle listeners and Event Bus subscribers of the state events.

A minimal example for a Digital Adapter:

// 0.8.1
@Override
protected void onStateUpdate(DigitalTwinState newState, DigitalTwinState previousState, ArrayList<DigitalTwinStateChange> changes) {
    newState.getPropertyList().ifPresent(properties -> properties.forEach(p -> publish(p.getKey(), p.getValue())));
}
// 0.9.0
@Override
protected void onStateDescriptionUpdate(DigitalTwinStateDescription description, List<DigitalTwinStateChange> descriptionChanges) {
    // the structure changed: add/remove what is exposed to the external world
}

@Override
protected void onStateValuesUpdate(DigitalTwinStateValues values, List<DigitalTwinStateChange> relevantChanges) {
    values.getPropertyValues().forEach((key, value) -> publish(key, value));
}

Pay attention: changes without compile errors

Some code written for 0.8.1 still compiles but behaves differently:

  • The last invocation of an action is not recorded automatically anymore: the Shadowing Function calls notifyActionExecuted(...) inside a state transaction
  • notifyDigitalTwinStateEvent(...) must be called inside a state transaction, otherwise it throws an exception
  • The start callbacks of the adapters are called before the adapters run: initialize resources in onAdapterStart()
  • observeState and observeEventNotifications of the Augmentation Functions are now honoured
  • A notified event or an executed action produces a values update
  • Subscribers of the state events receive a description (only on structural changes) or a values delta
  • Stored states, their counts and some storage metrics have a different meaning

For the complete list of changes and the detailed migration steps, please refer to the information provided:

Details about the affected topics:

Stay tuned for more updates!