Eclipse OSBP 设置 配置 My first app

 
 

General information

Abstract

My1App is an OSBP application created purely from models, based on the OS.bee Software Factory.

If you want to have a basis on which you can explore OS.bee, this is a good starting point. You can try to modify models and see the resulting changes. The models show everything from persistence up to the UI and demonstrate a lot of the stunning features and simplicity of MDSD (Model-Driven Software Development) with OS.bee.

In this introduction, you will find the system requirements for running the app, the steps needed to generate the app, how to start the app and tips for configuring the app.

License information

The OS.bee Software Factory is distributed under a commercial license.

The product itself is based on the OSBP Software Factory which is an Eclipse project. In addition, the software depends on several other open source projects, and the entire list of licenses used can be found here.

Requirements

Please install the OS.bee Software Factory first. Instructions for the installation can be found here.

How to generate My1App


My1App is generated from within Eclipse.

  1. In Project Explorer, right click the mouse, then select New -> Other....

    Eclipse OSBP 设置 配置
My first app



  2. Expand the entry OSBP Projects, select My1App and then click on Next.

    Eclipse OSBP 设置 配置
My first app



  3. The general configuration window for My1App will then be displayed.

    Eclipse OSBP 设置 配置
My first app



    • Click on Next.



  4. The JNDI Data Source can be set up on this page. Click Next when done.

    • The default value is h2memory, which saves all data in memory.

    • If you want to use a different JNDI Data Source, e.g., MySQL or Oracle, you can change it later.

      Eclipse OSBP 设置 配置
My first app



  5. Setup for the mock-data generation. Click on Next.

    Eclipse OSBP 设置 配置
My first app



  6. Choose the location where you would like to save the files of My1App



    • You can use the default location:

      Eclipse OSBP 设置 配置
My first app



    • Or you can specify your own folder by unchecking the checkbox:

      Eclipse OSBP 设置 配置
My first app



    • Click on Next when done.


  7. The XMS Memory is usually ¼ of total physical memory, but you can change it if you want. The desktop link which will be used later to start the application can also be found here.

    Eclipse OSBP 设置 配置
My first app



    • Click on Finish to start the application generation step.

      Eclipse OSBP 设置 配置
My first app



  8. When the window disappears, you can see in Project Explorer that all projects of My1App have been generated.

    Eclipse OSBP 设置 配置
My first app



    • Please note that up until this point, the application has not yet been completely generated. Typically, the workspace is still being built (see the bottom right corner of the window). Wait until this process has completed.

      Eclipse OSBP 设置 配置
My first app



  9. When the Building Workspace message disappears, the generation of My1App is complete. Project Explorer should now look like this:

    Eclipse OSBP 设置 配置
My first app



How to start My1App

  • Now we are ready to start My1App.

Launch Eclipse Application

  1. Open the file my1app.product contained in the org.osbp.my1app.product project.

    Eclipse OSBP 设置 配置
My first app



  2. First, the product definition should be validated. Please click the button at the top right.

    Eclipse OSBP 设置 配置
My first app



  3. If no problems were detected, click on OK. Otherwise, fix any problems first.

    Eclipse OSBP 设置 配置
My first app



  4. Now, click on Launch an Eclipse application to start My1App.

    Eclipse OSBP 设置 配置
My first app



  5. While the application is being launched, open the Console view to monitor the progress. One of the last lines displayed should end with the phrase TRIGGER DONE....

    Eclipse OSBP 设置 配置
My first app



Starting My1App in a Browser


To start My1App, point your browser to this address:
http://localhost:8081/my1app

  1. Login

    1. The login screen is displayed first.

      Eclipse OSBP 设置 配置
My first app


    2. Enter the user name and password, e.g., Admin, Admin, then click on Login to continue.

      Eclipse OSBP 设置 配置
My first app


  2. Welcome screen 

    • The welcome screen is now displayed.

      Eclipse OSBP 设置 配置
My first app


  3. Menu list

    • At the top left of the window, just beside Admin, is the MENU button. Click it to pop open the menu.

    • There are two main menus: Menu and Persons.

      Eclipse OSBP 设置 配置
My first app


    1. Menu

      • There are two submenus under Menu

        1. Persons:

          Eclipse OSBP 设置 配置
My first app


        2. User administration:

          Eclipse OSBP 设置 配置
My first app


  4. Tab list

    • At the top right of the window, there are some tabs. By clicking on them, you can easily switch between pages. 

How to configure My1App


Note that this part is optional, since My1App can always be started without additional configuration. If you want to change the default settings however, please continue reading.

  • All configuration is performed within Eclipse.



Select OSBP Application Project

  • The first step of the configuration is to change the Product Configuration from workspace to org.osbp.my1app.product in Preferences -> OSBP Application Configuration. Please note that this entry is not saved. You must repeat this step each time you wish to configure My1App. Or, you can access the Preferences for org.osbp.my1app.product by right-clicking org.osbp.my1app.product and selecting Properties

    Eclipse OSBP 设置 配置
My first app



Detail Configuration


No configuration is necessary for My1App to run. However, if you wish to change anything, you can.
Click on the '>' symbol next to OSBP Application Configuration to expand the tree.

  1. Configure Authentication.

    Eclipse OSBP 设置 配置
My first app



  2. Configure Bpm Engine.

    Eclipse OSBP 设置 配置
My first app



  3. Configure Controls.

    Eclipse OSBP 设置 配置
My first app



  4. Configure Data Sources.

    • All data sources can be set up here.

      Eclipse OSBP 设置 配置
My first app



    • If you want to use other data sources, please configure them first. Click + to expand the tree, and then enter all necessary information, e.g. Server NameServer PortDatabase Name etc.

      Eclipse OSBP 设置 配置
My first app



  5. Configure Email.

    Eclipse OSBP 设置 配置
My first app



  6. Configure External Data Sources.

    Eclipse OSBP 设置 配置
My first app



  7. Configure Localization.

    Eclipse OSBP 设置 配置
My first app



  8. Configure PersistenceUnits.

    • All details about Persistence Units can be changed here.

      Eclipse OSBP 设置 配置
My first app



    • Click + to expand the tree. You can then change the JNDI Data SourceDDL Generation etc.

      Eclipse OSBP 设置 配置
My first app

      Eclipse OSBP 设置 配置
My first app



  9. Configure Project Wizard.

    Eclipse OSBP 设置 配置
My first app



  10. Configure Service Communication.

    Eclipse OSBP 设置 配置
My first app



  11. Configure Verify Dependencies.

    • If you see all green points, it means My1App is ready to start without any dependency errors. If you see any red points, you must fix the errors before starting the app.

      Eclipse OSBP 设置 配置
My first app