Context:
I’m working with a Workshop application in Foundry where I use an AIP Agent to analyze stakeholder requirements. The agent produces structured analysis results for each requirement, including fields like Requirement ID, Requirement Text, Feature Assignment, Subgroup, and Safety/Cybersecurity attributes (see attached screenshot for a dummy example)1.
Goal:
I need to export these analysis results (currently as objects in an object set) to a ReqIF (Requirements Interchange Format) file so that they can be shared with external requirements management tools.
What I’ve Tried
- I can access and display the analyzed requirements as objects in the Workshop app.
- I’m able to trigger the analysis and view the structured output, but I’m not sure of the best way to transform this object set into a valid ReqIF file and make it downloadable for users.
My Questions
- Is there a recommended approach or best practice for exporting object sets (like requirements analysis outputs) to ReqIF format in Foundry?
- Are there any built-in tools, transforms, or community solutions for mapping object attributes to ReqIF XML structure?
- If not, what’s the best way to implement this-should I use a Python transform, a Code Workbook, or something else?
- How do others handle exporting complex object data (with nested fields and reasoning) to ReqIF or similar standards?
Example of the Data Structure
Here’s a dummy example of the kind of data I want to export (not real data):
- Requirement ID: 39980
- Requirement Text: “Operating voltage is defined …”
- Primary Feature Assignment: Input Monitoring
- Subgroup: Digital and Analog
- Safety Related: No
- Cybersecurity Related: No
- Reasoning: “Specifies the operating voltage …”
- Requirement ID: 39970
- Requirement Text: “The supplier shall analyze HW components…”
- Primary Feature Assignment: Technical
- Subgroup: Technical Safety
- Safety Related: Yes
- Cybersecurity Related: No
- Reasoning: “Directly related to safety analysis and risk assessment of hardware components…”
What I’m Looking For
- Sample code snippets or references for exporting Foundry object sets to ReqIF.
- Advice on mapping fields (e.g., how to handle nested or optional attributes).
- Tips for integrating this export into a Workshop app (e.g., providing a download button).
- Any caveats or lessons learned from others who have done similar exports.
Additional Info
- I’ve searched the community but haven’t found a direct solution yet243.
- I’m following community guidelines and have removed all sensitive data from this post86.
- Happy to clarify or provide more dummy data if it helps!
Thanks in advance for any guidance or examples!
Tagging: workshop, object-sets, aip-agent, data-export, reqif
If you have tackled a similar challenge or have code for exporting to ReqIF, I’d love to hear about your approach!