How to Run WinVMJ Composer

It is now time to compile and run the product.

Prerequisites

1. Generate modules from UML-DOP before proceeding to the next steps.
2. Move the generated modules from your UML-DOP directory to the modules directory in the project where you want to generate them. You can use this example if you want.

Generating a Product

The product generation starts by creating a new configuration:

  1. The configuration is defined in the directory configs.
  2. Right click on the project, then select NEW -> OTHER -> FeatureIDE -> Configuration File.
  3. Define the configuration file's name to represent the product's name.
  4. Select the required features, then right click on the configuration file and choose FeatureIDE -> Set As Current Configuration.
  5. Generating a Product 1 Generating a Product 2

Generated modules are available in the src directory. If the generated modules do not appear, ensure you have generated the modules from the UML and placed them in the modules directory.

Compiling a Product

Follow these steps to compile the generated product:

  1. Right click on the src directory.
  2. Select FeatureIDE > WinVMJ > Compile.
  3. Compiling a Product
  4. Check the WinVMJ Console to monitor the compilation process.

The compiled application will be placed in the src-gen directory.

Running a Product

Follow these steps to run the compiled product:

  1. On the top toolbar, click on Run > External Tools > External Tool Configuration.
  2. Click on Program > New Configuration.
  3. Create a New External Configuration
  4. Set the script location to src-gen/[Product Name]/run.[bat (Windows) / sh (Linux / Mac)].
  5. Set the working directory to src-gen/[Product Name]/.
  6. Running a Product 1
  7. In the Environment menu, add the following environment variables:
  • AMANAH_HOST_BE -> Backend host address (e.g., "localhost")
  • AMANAH_PORT_BE -> Backend port number (e.g., "7776")
  • AMANAH_DB_USER -> PostgreSQL username (e.g., "postgres")
  • AMANAH_DB_PASSWORD -> PostgreSQL password (e.g., "postgres")
  • AMANAH_DB_URL -> Database URL (e.g., "jdbc:postgresql://localhost:5432/bankaccount_product_overdraftaccount")
Running a Product 2
  1. Click Apply to save the environment variables.
  2. Click Run.