Generating a Running Program
- Select a diagram file (unless you already have a diagram on your screen). Now click on
"File/Generate Code", and select the desired language.
- If any information is missing from the diagram, you will be
prompted to enter it, and it will be entered into the diagram.
- If you decide not to enter the requested information at this
point, the missing data will be shown as four red question-marks in the
generated text, and an error message will appear at the end of the
code.
- If you specify "multiplex" on any process, you will be prompted
to enter the multiplex number. This must be filled
in before you can get a clean compile.
- The package name will initially be taken from the properties file. If you then modify the package name (in the case of Java),
the new value will be replaced into the properties file.
- The File menu now contains "Compile Code" and "Run Code" - these can be used to test your generated code. In the case of Java, you will
have to make sure that .class files exist for all components (you can use "File/Compile Code" to do this). In the case of C# the "File/Compile Code"
option will compile all the code in a given folder, generating an .exe file using that folder name.