Files
WidgetWorkbench/hmi-docs/CLIENT_MIGRATION_MATRIX.md

53 lines
3.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Native MES widgets V4 – migration inventory
## HistoryBooking.html → `wb.history`
| Feature | Native implementation |
|---|---|
| Station session reuse | Server-side IMSAPI session via secure HMI REST proxy; no browser `globallogin` trust |
| Station settings and active order | `getActiveOrder` |
| Find and activate available workorders/layers | `getOrders`, `trActivateWorkOrder` |
| Serial history 6 views | `getHistory` (booking/failure/slip/measure/merge/setup) |
| Serial state rebooking dialog | `trUploadState`, per-history-row station/layer |
| Missing serial -110 / assign to active order | `trAssignSerialNumberForProductOrWorkOrder`, optional state 0 booking |
| Login modal, own regLogin | Not duplicated; uses existing Workbench station login |
## Activities_rest.html → `wb.activities`
| Feature | Native implementation |
|---|---|
| Workplan + state, previous workstep lock | `mdataGetWorkplanData`, `trGetSerialNumberHistoryData` |
| Recipe/measurement editing | `mdaGetRecipeData`; edit locally before `trUploadResultDataAndRecipe` |
| Failure codes, component assignment | `mdataGetFailureDataForStation` / `trUploadFailureAndResultData` |
| Setup activation/deletion and bins | `setupStateChange` / `setupUpdateMaterialSetup` |
| Attribute edit/create | `attribAppendAttributeValues` / `attribCreateAttributeCode` |
| Active workorder switch per workstep | `trGetSerialNumberInfo` + `trActivateWorkOrder` |
| Booking/failure/slip/measurement/setup/attribute list views | Native grid-compatible Vue tables |
## Validation needed before production
The browser source faithfully supplies the known MES action names and payload shapes. No end-to-end IMSAPI tests were available in this workspace. In particular check material setup `location`, recipe value mapping, failure upload acceptance, station 8310 flag, session and serial positions on your test system. The original HTML files remain available only as temporary fallback and comparison references, not as iframe widgets.
## Theme
`backend/src/main/webapp/ios.css` is the immutable WAR fallback. Legacy pages now link `/backend/hmi-theme/ios.css`; admins design in `/backend/hmi/` and publish full CSS snapshots to `CUST.HMI_APP_CSS_REVISION`. Vue uses the published `--itac-*` token values and component-specific styles for safe layout isolation. Selector-level legacy CSS changes only affect corresponding legacy DOM structures. Re-publish a previous revision to roll back.
## Workplace browser runtime – 2026-11-22
| Feature | Implementation / status |
|---|---|
| JNLP + 129 portable JARs | Local archive, byte-identical private WAR resources; authenticated Range endpoint |
| Remote updates | Explicit `-Dhmi.workplace.source=remote`; TLS validation retained |
| Vendor signatures | Preserved; experimental unsigned SysParameter override now opt-in `sysparam=on` |
| Java/Swing | CheerpJ 5.0 / Java 11; Chromium startup test, see deployment report |
| MES authentication / writes | Unmodified; no authenticated transaction test performed |
| Native serial drivers | Unsupported by browser JVM; platform-specific JARs omitted |
## 2026-11-23 correction – authoritative current behavior
The previous ZIP-based runtime source is retired. Current Workplace.jnlp and manufacturer
JARs ALWAYS come from the authenticated MES server. No archived runtime fallback. Every
launch refreshes the manifest and JAR-cache generation. Browser identity login fix retained;
window diagnostics default off. User reports login works; authenticated version compatibility
remains to be verified after redeployment. See WORKPLACE_DEPLOYMENT.md.