Resolver public API¶
The Java interface is org.integratedmodelling.klab.api.services.Resolver. Use a ContextScope bound to the twin and its host Runtime. A normal application requests observations through the Runtime. Direct use of the Resolver is appropriate when the application specifically needs the planning operation.
| Operation | Input | Result |
|---|---|---|
resolve(observation, contextScope) |
An observation request and its context | A CompletableFuture<Dataflow>. Inspect the completed plan and notifications. A successful planning call precedes execution. |
getSubmittedResources(scope) |
The current context | A list of resources submitted in that context, including contextual resources known to its resolution workflow. |
submitResource(observation, contextScope) |
An observation with suitable contextualization data | A resource made available to this context. Catalog publication for other users follows the Resources workflow. |
Carry forward the original constraints, subject and observer when investigating why the resolver chose a different method. In an asynchronous integration, handle exceptional completion and distinguish an unsuccessful explanation from execution of a valid plan. For a scientist asking for values, use the normal observation builder and inspect the returned observation. Runtime public API ยท Resolver web API