此内容没有您所选择的语言版本。

Chapter 6. Multiple branches in Decision Central


Multiple branches support in Decision Central provides the ability to create a new branch based on an existing one, including all of its assets. All new, imported, and sample projects open in the default master branch. You can create as many branches as you need and can work on multiple branches interchangeably without impacting the original project on the master branch.

Red Hat Decision Manager 7.2 includes support for persisting branches, which means that Decision Central remembers the last branch used and will open in that branch when you log back in.

6.1. Creating branches

You can create new branches in Decision Central and name them whatever you like. Initially, you will only have the default master branch. When you create a new branch for a project, you are making a copy of the selected branch. You can make changes to the project on the new branch without impacting the original master branch version.

Procedure

  1. Log in to Decision Central and click Menu Design Projects.
  2. Click on the project to create the new branch, for example the Mortgages sample project.
  3. Click master Add Branch.

    Figure 6.1. Create the new branch menu

    Creating the new branch menu
  4. Type testBranch1 in the Name field and select master from the Add Branch window. Where testBranch1 is any name that you want to name the new branch.
  5. Select the branch that will be the base for the new branch from the Add Branch window. This can be any existing branch.
  6. Click Add.

    Figure 6.2. Add the new branch window

    Adding the new branch testBranch1

After adding the new branch, you will be redirected to it, and it will contain all of the assets that you had in your project in the master branch.

6.2. Selecting branches

You can switch between branches to make modifications to project assets and test the revised functionality.

Procedure

  1. Click on the current branch name and select the desired project branch from the drop-down list.

    Figure 6.3. Select a branch menu

    Selecting a branch menu

After selecting the branch, you are redirected to that branch containing the project and all of the assets that you had defined.

6.3. Deleting branches

You can delete any branch except for the master branch. Decision Central does not allow you to delete the master branch to avoid corrupting your environment. You must be in any branch other than master for the following procedure to work.

Procedure

  1. Click dots in the upper-right corner of the screen and select Delete Branch.

    Figure 6.4. Deleting a branch menu

    Delete a branch menu
  2. Input the branch name to be deleted in the Delete Branch window and click Delete Branch.

6.4. Building and deploying projects

After your project is developed, you can build the project from the specified branch in Decision Central and deploy it to the configured Decision Server.

Procedure

  1. In Decision Central, go to Menu Design Projects and click the project name.
  2. In the upper-right corner, click Deploy to build the project and deploy it to Decision Server. If the build fails, address any problems described in the Alerts panel at the bottom of the screen. For more information about deploying projects, see Packaging and deploying a Red Hat Decision Manager project.
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.