To customize the Risk Computation
- Create a new project and profile:
- Create a new UML project.
- Select Options>Project Usages, and add the ISO 21434 Profile.mdzip file to it.
- Create a new profile under the root package.
- Provide the required name, for example, My Customized ISO21434 Profile.
- Create a new profile diagram in the My Customized ISO21434 Profile.
- Provide the required name, for example, My Customized Threat Scenario.
- Create a new customization:
- Search for ThreatScenarioCustomization available in the ISO 21434 Profile, and drag and drop it into the profile diagram.
- Create a new customization element.
- Provide the required name, for example, MyThreatScenarioCustomization.
- Create a generalization relationship between the newly created customization element and ThreatScenarioCustomization.
- Using the Specification window of MyThreatScenarioCustomization, assign the value to the Customization Target property as ThreatScenario.
- Create Customization Element Properties:
- Select the customization element, open the smart manipulator, and select the Derived Property Specification.
- Provide the required name for example SafetyRiskValue.
- Using the Specification window, assign:
Type: Real [UML Primitive Types]
- Multiplicity: [0.1]
- Redefined Property: +SafetyRiskValue (From the ISO 21434 profile)
- Create an expression for the Derived property:
- In the Specification window of the derived property (SafetyRiskValue), launch the editor for the Expression property.
- Select Create operation and then select the Real value.
- Provide the required Name and Value.
- Share the created profile and save the project.
Using the same steps, create other required derived properties and create required expressions for them (Operational, Financial, and Privacy Risk Value).
Once you add the created project containing the customized profile, the customized risk values are visible in any TARA project containing the threat scenario elements.