Giter Site home page Giter Site logo

Comments (4)

marek-piirikivi avatar marek-piirikivi commented on June 9, 2024

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:

  1. from gaphor/UML/uml.py you can see that class Transition already has guard and effect
  2. To allow editing effect, you have to work with gaphor/UML/states/propertypages.py
  3. 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.
  4. For getting the transition information correctly drawn on the diagram, see gaphor/UML/states/transition.py

from gaphor.

mikekidner avatar mikekidner commented on June 9, 2024

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.

marek-piirikivi avatar marek-piirikivi commented on June 9, 2024

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.

danyeaw avatar danyeaw commented on June 9, 2024

I would try removing your virtualenv and then recreating it and run poetry install again.

from gaphor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.