Tiebreaker

◷ Reading Time: 3 minutes

The Tiebreaker sample project shows how to implement tiebreaking rules of a game to determine the ranks of the players.

  • Input –> A list of players with their details such as ranking points, the number of matches, age, the previous rank
  • Decision –> Rank the players. If there are players with the same ranking points use the tiebreaking rules to rank the players.
  • Output –> The list of players with their rank

Running the Project

1. Open Main.xml

2. Click on Logic Run Template

Detail view of the Logic Run Template menu item

3. Select a template.

Logic Run Template view showing the available test templates

4. Click debug.

Detail view of the Debug menu item

5. You can go step-by-step or stop.

Detail view of the Debug Next Step menu item

6. The ranking positions can be seen under the Parameters window.

Parameters view showing the output of the test run

Project Description

Main.xml

The flow that connects all the components of the Tiebreaker project.

Flow diagram for the decision in the Tiebreaker sample project

Rank Tied Players.xml

This flow loops through the players and ranks the positions.

Flow document to calculate the players rank

Tiebreaking.xml

A Decision Table is used to define the tiebreaking rules to rank the players with the same ranking points.

Decision Table to define the tiebreaking rules to rank the players with the same ranking points.

BusinessFormula.xml

Business Formula is used to define the formulas used in the project. It allows reusing the expressions.

Business Formula defining the parameter names and expressions

BusinessGlossary.xml

Business Glossary is used to define the column of the decision table. It allows mapping the condition expressions with aliases. Therefore, in the decision table columns, you can use the aliases.

Example of the Business Glossary to define the column of the decision table.

Download the Project

Use the attachment at the end of the page to download the sample project.

Updated on January 18, 2024

Article Attachments

Was this article helpful?

Related Articles