You can read from different types of data in a DMN project. The data can be mapped out and manipulated in however your project requires. A text file can be accessed in FlexRule.

Add an Activity Flow to your DMN Project

Add an Activity Flow by selecting the Add New Document icon in the project explorer, and you can find it under Business Logic. Or if you already have an activity flow where it makes sense to add the file node, you can add it there.

In the activity flow be sure to add a start and end node because every activity flow requires one. Open the toolbox with Alt+x

Add a Text file to a DMN Project

Scroll down in the toolbox to the Data section and add a file node to the flow.

Select the node and in the properties window to the left and fill in informaiton for Type, CopyValueTo, and URI.

Set the Type to text.

Enter the file location into the URI field. The data will be copied into the parameter entered into the CopyValueTo field.

A Text File as an Input

Using the Age Classification sample project as an example, we can take in a text file as input to the DRD. To do this create a flow, add a file node, and drag and drop the DRD into the flow. Create a parameter to store the text file. An example text file that you can use in the Age Categorization project could simply have a value of 30 in the file.

Fill in the correct settings in the parameters window:

View the value of the parameter in the parameter window.

Add a Spread Sheet to a DRD

Alternatively, drag and drop the flow into the DRD orchestraing the DMN project so the flow becomes one of the decision nodes of the main orchestration.

Summary

Connect to text filetypes in DMN projects using the File node of an Acitivity Flow logic document. If your main orchestration for a DMN project is a DRD you can create an Activity Flow with a File node, and drag-and-drop it into your DRD. Debug the project (or run it) to view the text file values in the parameter window and data viewer.