Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Connecting services

The interface can be adapted to a live CE-RISE solution, a mixed CE-RISE/external application, or another passport backend. Integration requires matching data and service contracts, not simply changing a server address. The same requirements apply to a shared testing environment.

Product records and passport views

The example API constructs product responses from SQLite rows and local presentation definitions. Its dpp sections are not records validated against the published CE-RISE models.

For a connected application, select the source records and model versions, define how they populate the UI fields, and implement reading and writing through the chosen backend. Keep record identifiers, versions, ownership, and source provenance distinct from display labels and browser layout preferences.

HEX Core can provide validation and record access where it is part of the selected solution. Other compatible services can be used instead. Neither the frontend nor its example API contains that connector.

RE criteria and calculations

The R-Strategy Indicators forms implement the CE-RISE questionnaire concepts using definitions loaded by the seeder. Their answer objects and locally calculated scores follow this example API’s contract, not the released service’s request and response contract.

When using the RE Indicators Calculation Service, translate the form answers into the supported input structure, use the intended specification version, and map the returned results and diagnostics into the interface. Compare the example’s score handling with the selected service before treating the two as equivalent.

Environmental inventories and results

The environmental editor provides activity and flow forms, background-reference selection, supplier snapshots, and study metadata. Its Turtle/JSON-LD exchange uses its own ontology-based representation; it does not directly produce the validated inputs or outputs of the released calculator.

Integration with the SEE Impacts Calculation Service needs these explicit contracts:

Information in the interfaceIntegration requirement
Activities, flows, quantities, and unitsConstruct and validate an LCI Dataset record
Activity connections, reference output, and functional unitConstruct and validate a Product System record and the calculation request
Selected background referencesResolve identifiers and units against the calculator’s configured background rather than assuming the editor’s catalogue matches it
Results and calculation diagnosticsConsume the service response and present the returned Integrated LCA record or diagnostic
Method and data provenanceRetain the method, software, background, source, and version information supplied with the records and results

The example’s two climate-change figures are local calculations. They are not a substitute for the released calculator’s full result object. A connected interface should display service results and their metadata explicitly rather than relabel those local figures as service outputs.

Authentication and access

Retaining Keycloak browser login is compatible with using different backends, but each exposed API or gateway must validate access independently. The copied API’s unverified user-identifier extraction must not be used as the basis for protecting records in a shared environment.

A deployment needs token verification, including signature, issuer, audience, and expiry, together with permissions for product records and assessments. It also needs matching browser origins, callback URLs, HTTPS and proxy settings, and a decision about who can change shared example products’ assessments.

Validate the connected workflows

Check record read/write and validation, questionnaire-to-request transformations, inventory identifiers and units, returned results, and error presentation against the selected services and model versions. Include tests for expired or invalid credentials and attempts to access another user’s records.

The copied checks exercise the independent example. Connected workflow tests need to be defined for the actual deployment; they are not supplied by changing configuration alone.