Comments (4)
Thank you for drawing attention to that. This would definitely be a fine addition.
If you want to get started with this on your own, few pointers to get you started quicker:
- from gaphor/UML/uml.py you can see that class Transition already has guard and effect
- To allow editing effect, you have to work with gaphor/UML/states/propertypages.py
- For trigger, UML model has to be changed. Gaphor uses auto-generated uml.py, so after model is changed, uml.py needs to be regenerated which would allow you to enable editing trigger on the property page as well. Open UML.gaphor with the gaphor itself, define necessary relationships in the UML model; save it; and run
poetry run poe uml
to generate code. - For getting the transition information correctly drawn on the diagram, see gaphor/UML/states/transition.py
from gaphor.
Hi @marek-piirikivi,
Thanks for the tips re remaking the model from the gaphor file. I was wondering how to do that.
I had a go at running poetry to recreate raaml.py from the RAAML model and it complained:
poetry run poe raaml
ModuleNotFoundError: No module named 'defusedxml'
But
Requirement already satisfied: defusedxml in blah/blah/lib/python3.11/site-packages (0.7.1)
Some path weirdness in poetry perhaps?
from gaphor.
Hi @mikekidner
Maybe you have missing dependencies. poetry install
maybe fixes the problem? I tried and the raaml generation runs just fine.
I believe @amolenaar or @danyeaw can help you better. Seems to be worth a separate discussion.
from gaphor.
I would try removing your virtualenv and then recreating it and run poetry install again.
from gaphor.
Related Issues (20)
- Error when installing Gaphor (Windows client) HOT 1
- Please add the automatic backup function as soon as possible! HOT 4
- Replace status window by something more stylish
- Update screenshots for website and FlatHub HOT 4
- Gaphor shows diagram changed bar after saving HOT 5
- Please add a toolbar in the Gaphor software interface HOT 1
- Add Mermaid Diagram Syntax Support and Markdown Export Capability HOT 2
- Windows: cairo freetype error on load HOT 2
- Elements do not show content until clicked on HOT 1
- Support multiple item flows on a connector in the UI and on diagrams
- Native ARM build for macOS HOT 4
- adding sequence diagram failed HOT 1
- Minor import issues in spripting.md HOT 4
- Stereotypes on diagrams
- shift-Z shortcut on Mac OS can rename diagram HOT 5
- Not able to add {readOnly} to property HOT 1
- Auto layout throws error HOT 6
- "Diagram has changed on disk" when saving a file to OneDrive on Windows HOT 2
- Error: "Handle is not an end handle" HOT 3
- [State Machines]: Resize / Rotate for fork / join pseudostates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gaphor.