◷ Reading Time: 3 minutes
This project contains a set of scenarios that demonstrate the capabilities of FlexRule for manipulating data collections.
- Car: Using IRD (Information Requirement Diagram) or NL (Natural Language), it finds a set of unique and common cars from a given list.
- Person: Using DT, it finds the set of unique people according to their name and sex.
- Titanic: Using NL, it finds a set of males and females who survived or did not survive during Titanic. The data is read from an Excel spreadsheet.
Running the Sample
1. For Car and Person projects, open the file that you want to run.
For the Titanic project, open MainFlow.xml file.
2. For Car and Person projects, click on Logic Run Template and select a template.
For the Titanic project, click on Debug with JSON Composer.
3. Click on Next Step to go step by step.
4. You will see the output under the Parameters window.
The project contains the following files:
In this project, you can see how to get the same output using both IRD and NL documents
- Cars-IRD-advanced.xml: Shows the common and unique cars using an IRD.
- Cars-IRD.xml: Shows the common and unique cars using an IRD.
- Cars-NL.xml: Shows the common and unique cars using Natural Language.
- IRD-in-Flow.xml: The flow that connects the IRD.
- PersonsDuplicate-Name.xml: A Decision Table that determines the duplicates
- PersonsDuplicate-NameSex.xml: A Decision Table that determines the duplicates
- Data-Stats-NL.xml: The Natural Language file that determines the survival rate
- MainFlow.xml: The Generic Flow that connects the data source and the Natural Language file that determines the survival rates.
- data –> titanic_survival_data.xls: The spreadsheet with the Titanic survival data
Download the Project
Use the attachment at the end of the page to download the sample project.