IRD
Contents
Information Requirement Diagram
The Information Requirement Diagram (IRD) is a model used to define a graph in order to process data using data operations, business knowledge, and rules. It produces appropriate output to meet the data requirements of a specific business process or logic. An IRD is built by combining different nodes that are related to each other. Each node may specific types of associations with other nodes of the graph.
An IDR sample is shown below:
In execution time, the IRD uses monadic operators underneath.
Elements
All of the different type of nodes on an IRD model are illustrated below:
Operators
In the current version of IRD, the following operators are supported:
- Select: Selects properties of an element from a sequence (Monad definition)
- Select All
- Filter: Filters a source based on some conditions (Monad definition)
- Group: Groups a source based on combination of values (Monad definition)
- Intersect: Finds the intersection of two or more sources (Monad definition)
- Union: Creates a sequence containing all of the input sources (Monad definition)
- Minus: Finds the differences between two sources (Monad definition)
- Skip: Skips a number of elements from the beginning of a source (Monad definition)
- Take: Returns a number of elements from the beginning of a source (Monad definition)
- Order: Orders a sequence either as ascending or descending (Monad definition)
- Count: Returns the number of elements inside a sequence (Monad definition)
- Min: Returns the minimum value of a sequence (Monad definition)
- Max: Returns the maximum value of a sequence (Monad definition)
- Sum: Returns a sum-up value of a sequence (Monad definition)
- Average: Returns the average value of a sequence (Monad definition)
- Any: Returns true if any element of a sequence meets a criterion, otherwise false (Monad definition)
- All: Returns true if all elements of a sequence meet a criterion, otherwise false (Monad definition)
Associations
Associations in the graph are responsible for passing on information to a destination node as the source. The source of information is provided to an operator (node) in two different roles:
- Information
- Knowledge
The next node in the graph receives the information as an information source or passes parameters (knowledge). In the above picture, the Intersect g1, g2 will have two inputs to the entire intersect operator:
- one from the top green Select, which will act as the information source
- the other one from the bottom green Select, which will act as parameters
When passing information around in the graph, the receiver node may need:
- Exactly the result of the previous operator
- The result of the previous operator plus its association
In the first scenario, based on the role of the association (Information or Knowledge), the source will be passed to the next operator as an input information or processing parameters without any changes. If some changes are required while transferring a source to the next operator, the expression property of association can be used. In this case, the receiver will get the information on which the association's expression was applied.
In the above example, the purple group node does not pass the source as information directly to the next node (green select) because the association between these would apply a function (expression) on the information source before the next node (green select) receives it.
Sample
When you install FlexRule Designer, there is a sample called "Collections" which has a few examples in IRD.
Next sections
In the next couple of articles we will cover different aspect of modelling and executing the IRD.
- Information Requirement Diagram
- Common cars tutorial