id: bd232ee1d1574cb5862a3aea7b1acb0e
parent_id: 
item_type: 1
item_id: 5e634876c359468e83c41e2534c5db94
item_updated_time: 1787646633024
title_diff: "[{\"diffs\":[[1,\"EA Import Guide - UDS Security Example\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":38}]"
body_diff: "[{\"diffs\":[[1,\"# EA Import Guide - UDS Security Example Diagrams\\\n\\\nKit location: `Examples/Diagrams/EA/`\\\n\\\n## Files\\\n- `SYS_Import_EA.js` - EA JScript: creates **SYS.3 System Architectural Design** (Context, Architecture, State Machine diagrams, native EA elements + connectors + layout)\\\n- `SW_Import_EA.js` - EA JScript: creates **SWE.2 SW Architectural Design** (SSA-AP internal architecture, Flash/NvM block layout)\\\n- `SYS_AuthSequence.xmi` - XMI 2.1: SYS-level authentication workflow (black-box: Tester/Dcm/SSA-AP/HSM, two-step $29)\\\n- `SW_AuthSequence.xmi` - XMI 2.1: SW-level authentication workflow (white-box: Dcm + SSA-AP modules, both steps + ACL check + timeout/de-auth)\\\n- `SW_CertVerifySequence.xmi` - XMI 2.1: certificate verification call chain (Parser/KeyM/NvM/Csm/HSM incl. NRC alt-block)\\\n\\\n## Why scripts for structure, XMI for sequences\\\nPlantUML `-txmi` emits **UML 1.3/XMI 1.1** for component/state diagrams (poor EA import quality) but clean **UML 2.1/XMI 2.1** for sequence diagrams. Hence: structure via EA Automation scripts (native elements, stereotypes, notes, coordinates), sequences via XMI 2.1 import (EA auto-layouts the messages).\\\n\\\n## Steps\\\n1. In EA, select the model/root package in the Project Browser.\\\n2. Scripting window (Specialize -> Scripts) -> group -> **Add Script**, Language = **JScript** (not JavaScript) -> paste `SYS_Import_EA.js` -> Save -> select target package -> **Run** (F5). Creates \\\"SYS.3 System Architectural Design\\\" (Context / Architecture / Behavior).\\\n3. Repeat with `SW_Import_EA.js` -> creates \\\"SWE.2 SW Architectural Design\\\" (Architecture / Behavior / Memory Layout).\\\n4. Import sequences: right-click the \\\"Behavior\\\" package (SYS.3 or SWE.2) -> Import/Export -> Import Model from XMI -> choose the .xmi file. Verify lifelines and messages, then use EA's sequence auto-layout if needed.\\\n   - SYS.3/Behavior: `SYS_AuthSequence.xmi`\\\n   - SWE.2/Behavior: `SW_AuthSequence.xmi`, `SW_CertVerifySequence.xmi`\\\n5. Quick alternative without saved script: paste the whole script into the Scripting **Console** + Enter (one-shot).\\\n\\\n## Notes\\\n- Element Notes carry the SYS-RQ/SWRQ/HWRQ references from the DOORS workbook - keep them as the traceability hook. Consider EA tagged values linking to the requirement IDs for traceability reports.\\\n- Stereotypes used: MICROSAR, MBBL, SSA-AP, HW, offboard, initial.\\\n- Connector style: Dependency (dashed) for all flows; statechart uses Transition.\\\n- After import, cross-check element positions against the PNG renders in `Diagrams/SYS/` and `Diagrams/SW/`; adjust frames if fonts overflow.\\\n- Re-running a script creates duplicate packages - delete the old ones first.\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":2633}]"
metadata_diff: {"new":{"id":"5e634876c359468e83c41e2534c5db94","parent_id":"111595e632f1437d8c451eb73811d9c2","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1787641418799,"markup_language":1,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","deleted_time":0,"is_locked":0,"extracted_resource_ids":""},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2026-08-25T08:31:36.236Z
created_time: 2026-08-25T08:31:36.236Z
is_locked: 0
type_: 13