Chapter 4. Creating a project

A project can contain data models, business processes, business rules, forms or any other assets that are specific to your project’s requirements. When you create a project in Business Central it is added to the Git repository that is connected to your Red Hat Decision Manager installation.

Procedure

  1. In Business Central, go to MenuDesignProjects.
  2. Click Add Project.
  3. Type anyName in the Name field of the Add Project window and click Add. Where anyName is any name that you want to name the new project.

    Figure 4.1. Add the anyName project

    Adding the `anyName` project window

The Assets view of the project opens when you successfully create the project.

4.1. Modifying the Mortgages sample project

The Mortgages sample project consists of predefined data objects, guided decision tables, guided rules, forms, and a business process. Using the sample project provides a quick way to get acclimated with Red Hat Decision Manager. In a real business scenario, you would create all of the assets by providing data that is specific to your business requirements.

Navigate to the Mortgages sample project to view the predefined assets.

Procedure

  1. In Business Central, go to MenuDesignProjects.
  2. In the upper-right corner of the screen, click the arrow next to Add Project and select Try Samples.
  3. Select Mortgages and click Ok. The Assets view of the project opens.
  4. Click an asset that you want to modify. All of the assets can be edited to meet your project requirements.

4.2. Creating a project using archetypes

Archetypes are projects that are installed in Apache Maven repositories and contain a specific template structure. You can also generate parameterized versions of the project templates using archetypes. When you use an archetype to create a project, it is added to the Git repository that is connected to your Red Hat Decision Manager installation.

Prerequisites

  • You have created an archetype and added it to the Archetypes page in the Business Central Settings. For information about creating archetypes, see the Guide to Creating Archetypes.
  • You have set a default archetype in your space in Business Central.

For more information about archetypes management, see Configuring Business Central settings and properties.

Procedure

  1. In Business Central, go to MenuDesignProjects.
  2. Select or create the space into which you want to add a new project from an archetype template.
  3. Click Add Project.
  4. Type the project name and description in the Name and Description fields.
  5. Click Configure Advanced Options.
  6. Select the Based on template checkbox.
  7. Select the archetype from drop-down options if required. The default archetype is selected that is already set in the space.
  8. Click Add.

The Assets view of the project opens based on the selected archetype template.