What is a project data model?

Project Data Model
The Project Data Model (PDM) lets you define reusable data types at the project level. These data types propagate to the process data models, ensuring data consistency across yensuring data consistency across your FlowX.AI applications, including in Reusable Business Rules, Persistence Layer schemas, and other components. With PDM, you create a centralized data structure that serves as the foundation for all processes within your project. This ensures that core data types like Customer, Product, or Document maintain consistent definitions throughout your application.
Project Data Model

Key concepts

FlowX.AI supports several data model layers, each serving different purposes:
Data Model LayerDescription
Process Data ModelCan leverage data types defined in the Project Data Model or Library Data Model.
Project Data Model (PDM)Defines data types that can be reused across processes and other resources within the project
Library Data ModelDefined within a library. Allows data types to be reused across multiple projects, promoting standardization.
Data Model Types

Benefits of project data model

Consistency

Ensures data structure consistency across multiple processes and resources

Reusability

Define once, use many times across processes, business rules, and other components

Efficiency

Reduces development time by eliminating duplicate definitions

Maintainability

Centralized management of data structures

Standardization

Promotes the use of common data structures across projects

How to use the project data model

Access the project data model

1

Open FlowX.AI Designer

Open FlowX.AI Designer.
2

Navigate to your project

Select the project where you want to configure the Project Data Model.
3

Select Data Model

Select “Project Data Model” from the project menu.
Project Data Model

Define a project data model

1

Add a new data type

In the Project Data Model view, click ”+” to add a new data type.
Add data type
2

Name the data type

Provide a name for the data type.
3

Add attributes

Add attributes to the data type:
  • Specify attribute name
  • Select attribute type (string, number, boolean, object, array, enum)
Add attributes

Manage data types

Add a data type

  1. Click the ”+” button in the Data Types panel.
  2. Enter the name and properties of the data type.
  3. Add attributes as needed.
  4. Save changes.

Edit a data type

1

Select the data type

Select the data type in the Project Data Model.
2

Make changes

Click the three dots menu next to the data type and select “Settings”.
3

Edit the data type

Edit the data type as needed and click “Save”.
Changes to data types propagate to all processes referencing them. If a process is using this data type, it will automatically get the updated structure.
However, changes do NOT propagate to UI Designer paths, which will need to be adjusted manually.

Remove a data type

1

Select the data type

Select the data type to remove.
You can either delete an entire object or just a single attribute.
Delete data type
2

Click remove

Click the remove button.
3

Confirm deletion

You can delete the data type even if it’s in use. The system will show you a warning message indicating which processes reference the data type.
If the data type is in use by processes, you will receive a warning message showing which processes reference it. You can still proceed with the deletion, but this may affect the referenced processes.Delete data type

Working with referenced data types

When a data type from the Project Data Model is used in a Process Data Model:
  1. The Process Data Model will display the referenced data type.
  2. The referenced data type cannot be modified at the process level.
  3. Changes to the data type in the Project Data Model will propagate to all referencing processes.

Common scenarios

1

Access PDM

Navigate to the Project Data Model.
2

Make changes

Make changes to an existing key or attribute.
3

Propagation

The changes automatically propagate to all processes using that key.
4

Updates

Referenced components in processes will be updated to reflect the changes, but UI Designer paths require manual adjustment.

Use the Project Data Model in processes

  1. Navigate to a process within your project.
  2. Open the Process Data Model.
  3. Project data types are available for selection.
  4. Select the desired project data type to use in your process.
  5. The data type is added to your Process Data Model, maintaining reference to the Project Data Model.

Work with libraries

Library PDM

Integrate Library Data Models

  1. Navigate to your project dependencies.
  2. Add a library as a dependency. The library must have a build created.
Library PDM
  1. Library data types become available in your Project Data Model.
Library data types are not visible by default! You must select the library source in the filter to display them.
To filter by library types you can use the “Filter by source” feature.
Library PDM
  1. You can now use the library data types in your data model.
Library PDM

Handle duplicate types from libraries

When multiple libraries contain data types with the same name:
  1. Both types will be visible in the Project Data Model with visual indicators.
  2. Namespacing functionality will prevent technical issues.
Library PDM

Configure reporting and sensitive data settings

  1. Go to the Project Data Model.
  2. Click the “3 dots menu” in the upper right corner of the side panel.
  3. Choose “show details”.
PDM Show Details
  1. Update the sensitive/reporting settings as needed.
Reporting Sensitive
These settings apply to all instances of the attribute across processes.

Project Data Model after version commitment

After committing a project version:
  1. The Project Data Model becomes read-only.
  2. You can still view the diagram and monitor usage.
PDM after version commitment
  1. To make changes to the data model, you will require a new project version.
PDM after version commitment

Search and filter

The Project Data Model interface provides tools to help you find and work with your data types:
  1. Navigate to the Project Data Model.
  2. By default, only project-level types are displayed.
  3. Use filters to view library types as well.
  4. Use the search function to find specific types by name.

Update library dependencies

When updating library dependencies:
  1. Navigate to the dependencies section.
  2. Select the new library version.
  3. The system will inform you of any breaking changes to data types.
  4. You can decide whether to proceed with the update.
  5. If you proceed, changes will propagate to processes according to compatibility rules.

Real-world example: Insurance claims processing

This example demonstrates how an insurance company uses project data model for their claims processing system.

Best practices

Plan before implementation: Design your Project Data Model before creating processes to ensure consistency.
Always provide example values: Example values will be used in data mapping and other operations.
Use descriptive names: Choose clear, descriptive names for data types and attributes.
Document your model: Add descriptions to data types and attributes for better understanding and for AI agents.
Consider reusability: Design data types with reusability in mind across processes and resources.
Review impact of changes: Before modifying data types, check their usage across processes.
Use libraries for cross-project standards: For data types needed across multiple projects, define them in libraries.
Maintain regularly: Periodically review and clean up unused data types.

Limitations

Troubleshooting