Join GitHub today
Support java compilation of generated code and limited model execution in UmpleOnline #1394
UmpleOnline currently does not allow actual execution of generated code. There are risks in doing that (security, server load). UmpleOnline doesn't even compile the generated code to see if there are any syntax errors in user-defined methods. However this could be done on a limited basis by analysing an Umple model to determine that it is 'safe' for server use. A model would be safe if it only called methods that are defined in its own generated API (as determined by scanning), or a limited set of system methods (e.g. System.out.println()).
The idea is to allow generation and compilation of Java as a new generation target. This would cause error messages in java to be output. Compilation of Java would only occur if there are no errors in compilation of Umple.
Then also, a second new generation target would be generate, compile and run. This would do the following:
This feature has been requested by users to make UmpleOnline more attractive.