design-first / system-designer

A low-code development platform for creating systems 🇺🇦#standwithUkraine
https://designfirst.io/systemdesigner/
Apache License 2.0
930 stars 136 forks source link

Add Support For PHP / Other Languages In Behavior #134

Open brentvdalling opened 4 years ago

brentvdalling commented 4 years ago

For issues give the following informations related to your issue:

If the user attempts to place anything but javascript into the behavior of the model and its method, the editor displays a bunch of errors and will occasionally overwrite the contents of the behavior upon opening the behavior.

Please add support for other languages and maybe even a controlled tab/type so we can further distinguish items in the projects.

ecarriou commented 4 years ago

Thanks you for your suggestions!

In fact, I have started to do that a few times ago (cf. #89 ). For the design part it would not required a lot of work (part of the work was already done internally), but for the runtime it would need some time because it is heavily based on JavaScript features (i.e. JSON, creation of methods from a string, ...).

I prefer to focus more on stabilization and documentation for the moment, but I will see how I can do it because you are not the first person to ask for that feature.

brentvdalling commented 4 years ago

PHP supports everything you just mentioned. It would be great to see this tool support multiple C based languages. Importing XMI data would be a plus also.

ecarriou commented 4 years ago

I will continue on supporting other languages depending on the time I have.

For the XMI, I previously study how to import/export XMI file, but I found the XMI file too verbose to do it in a short time and I did not know if people will use it if I implement that feature. If you think that could be interesting, I can have a look too on that feature.

brentvdalling commented 4 years ago

Any updates on this?

ecarriou commented 4 years ago

Not for the moment, but I will have a look to this issue when I will have more free time.