Reporting
1. What are Reports?Direct link to 1. What are Reports?
Reports in Softyflow are a powerful feature designed to provide deep insights into your business processes. They go beyond simple data logging by offering comprehensive analytics and monitoring capabilities. By tracking, analyzing, and visualizing data from your process executions, reports empower you to make informed decisions, identify performance bottlenecks, and understand the real-world outcomes of your workflows.
Effective reporting is built on a solid foundation. Before you can create meaningful reports, it is essential to have:
- A well-defined project structure.
- Clearly designed business processes.
2. Report TypesDirect link to 2. Report Types
Softyflow offers two primary types of reports, each tailored to a specific analytical need: Instance Reports and Task Reports.
2.1. Instance ReportsDirect link to 2.1. Instance Reports
Instance reports provide a high-level overview of your process executions. Each time a process is initiated, it generates a unique "instance"—a complete run of that workflow from start to finish. These reports are crucial for understanding the overall health and efficiency of your business operations.
Key use cases for instance reports include:
- Monitoring Performance: Track key metrics like process completion rates, average duration, and error frequencies.
- Status Tracking: Gain real-time visibility into the status of all running processes (e.g., active, completed, failed).
- Data Analysis: Analyze the data collected during each process to identify trends, patterns, and business outcomes.
- Bottleneck Identification: Pinpoint stages in your process where delays frequently occur, allowing you to optimize workflows.
2.2. Task ReportsDirect link to 2.2. Task Reports
Task reports offer a granular view, focusing specifically on the user tasks within your processes. These reports are invaluable for managing team workloads, evaluating employee performance, and ensuring that critical activities are completed on time.
Key use cases for task reports include:
- Performance Metrics: Analyze task completion times, identify overdue tasks, and measure user efficiency.
- Screen-Specific Filtering: Isolate and analyze tasks associated with a particular form or step in your process.
3. Creating ReportsDirect link to 3. Creating Reports
Creating a report in Softyflow is a straightforward process: a short creation card, then the report editor, where you see the result while you configure it.
3.1. Basic SetupDirect link to 3.1. Basic Setup
- Open the creation card: in your project, open the Reports panel of the project dock and click + (or use the Report card of the project home).
- Fill in the New report card:
- Name: a clear and descriptive name (e.g., "Monthly Sales Approval Performance");
- Process: the business process you want to analyze;
- The report lists: Instances (one row per instance of the process) or Tasks (one row per task).
- Click Create. The report editor opens in a new tab.

3.2. The Report EditorDirect link to 3.2. The Report Editor
The report editor (/ide/report/<id>) has three parts:
- On the left, the palette of fields: the Process measures of the selected processes and the SoftyFlow fields (status, activity, dates, involved users…). Use Search a field… to find one, and click a field to add it as a column (click it again to remove it). Fields already shown are ticked.
- In the middle, the preview: the rows of the report in TEST, UAT or PROD, with paging. Click a row to open the instance or the task. The preview shows the saved version: after a change, click Save and refresh in the banner.
- On the right, the Report settings, in collapsible sections (see below).
The rail on the far right holds Save (Ctrl + S), Refresh the preview and Version history.

3.2.1. Core SettingsDirect link to 3.2.1. Core Settings
- General › Name: the displayed name of the report.
- Source: Instances (one row per request) or Tasks (one row per task), the Processes the report covers (several processes can be combined) and Search in every project to pick processes of other projects.
3.2.2. Data ConfigurationDirect link to 3.2.2. Data Configuration
- Columns: the fields shown, in order. Drag them to change the order, or remove them with the cross. The available fields are the process measures and the SoftyFlow fields.
- Filters: only the rows matching every filter are shown. Click Add a filter, choose the Field, the Condition (equals, contains, starts with, connected user, before, after…, depending on the field type) and the Value.
- For Tasks reports, the Field list also offers Delegated to and Assigned or delegated (not available as columns), whose only condition is Connected user: the tasks delegated to the connected user, and the tasks assigned to them, to their roles or delegated to them (see Task Fields).
The sort order of the rows is set where the report is displayed, in the Table widget.

3.2.3. Task Report Specific FiltersDirect link to 3.2.3. Task Report Specific Filters
For reports on Tasks, the Screen filters section narrows the report to the tasks of a given screen (step) of the process, by status (Running, Ended). Click Add a screen filter to add one.

4. Displaying Reports with TablesDirect link to 4. Displaying Reports with Tables
The most effective way to visualize and interact with your reports is by using the Table widget in your web interfaces. This widget transforms raw report data into a dynamic and user-friendly table.
Key features include:
- Interactive Filtering: Allow users to apply filters in real-time to explore the data.
- Dynamic Sorting: Enable click-to-sort functionality on any column.
- Efficient Pagination: Automatically handle large datasets with easy-to-navigate pages.
- Data Export: Provide one-click export to CSV and Excel formats for offline analysis.
- User Views: Let each user save their own filters, sort, column order and widths as named views (see User Views).

4.1. Data Source ConfigurationDirect link to 4.1. Data Source Configuration
Select the table in the UI builder and open the Data source card of its configuration panel:
- Under Where do the rows come from?, click the Report tile ("The instances of a report, with its measures.").
- In Report, choose the report (Choose a report). The button next to the field opens the report in its editor.
- The Query block shows No filter: every row. Add a filter only if the table must show part of the report (see Query and Filtering).
- Default sort: the field of Sort by (for example
createdAt) and Descending or Ascending. Advanced sort (several fields) sorts on several fields. - Display: Rows per page, Row click (the action run when the user clicks a row, for example opening the instance or the task) and User views.

Then, in the Columns card, click Import: the columns of the table are created from the columns of the report. The field of a column is the name of a measure (or of a SoftyFlow field such as SF_status or SF_createdAt).
4.2. Advanced Table Features for ReportsDirect link to 4.2. Advanced Table Features for Reports
Leverage the full power of the Table widget to create a rich user experience.
4.2.1. Column TypesDirect link to 4.2.1. Column Types
Each column of the Columns card has a type, set in its drawer (gear button, Configure the column): Text, Number, Date, Boolean, Currency, List, Selection, Custom list or Buttons. For a report:
- Text: For text-based data like process names, statuses, or descriptions.
- Date: For timestamps, deadlines, and completion dates, with proper formatting.
- Number: For numerical data such as durations, counts, or performance metrics.
- Currency: For financial data, ensuring correct formatting for cost analysis or budget tracking.
- Boolean: For true/false values, often displayed as checkboxes or status indicators.
- Buttons: For actions on the row, for example a "View task" button that opens the task (see Row Buttons and Row Click).

4.2.2. Interactive FeaturesDirect link to 4.2.2. Interactive Features
Enhance user interaction with these built-in capabilities:
- Real-time Filtering: Empower users to filter by date ranges, status, or assigned users on the fly.
- Sorting: Users sort the rows by clicking a sortable column; the default sort of the table can combine several fields.
- Row Selection: Enable the selection of instances or tasks for bulk actions.
- Export Options: Let users generate custom reports in CSV or Excel format directly from the table.
4.2.3. Responsive DesignDirect link to 4.2.3. Responsive Design
Tables are designed to be fully responsive and accessible on any device:
- Mobile Optimization: Includes touch-friendly controls for a seamless mobile experience.
- Collapsible Details: Configure rows to expand and show more detailed information.
- Adaptive Layout: Columns automatically adjust to fit different screen sizes.
4.3. User ViewsDirect link to 4.3. User Views
Turn on User views in the Display section of the Data source card ("Each user moves and resizes the columns, filters, sorts, and saves that as named views."). At runtime, each user of the application can then:
- arrange the table: filters, sort, order of the columns (drag a column header onto another one) and their widths;
- save that as a named view, and switch views with the view selector, the first button of the table toolbar (Standard view is the table as designed);
- mark a view as the default view (star): it opens with the page.
Views are personal: they are stored for each user, each table and each environment. See User Views for the details.

5. Query and FilteringDirect link to 5. Query and Filtering
The rows of a report table can be narrowed with a query, on top of the filters of the report itself (set in the report editor, see Data Configuration). The query is set in the table, so the same report can feed several tables, each showing part of it. See also Query Configuration in the Table widget reference.
5.1. The Data Query PopupDirect link to 5.1. The Data Query Popup
In the Query block of the Data source card, click Add a filter (or Edit the query when the table already has a query). The Data query popup opens, with the source, the report and the variable of the table under its title:
- the help reminds what the query is: "A filter on the measures of the report (and SF_status, SF_createdAt, SF_createdBy…), in JavaScript.", with an example;
- the editor holds the query;
- the Aggregation option turns the query into a pipeline (see Advanced Queries);
- Test the query runs it on sample values (see Testing the Query).
Click Save to keep the query, or Cancel. The Query block of the card then shows the query.

5.2. Basic FilteringDirect link to 5.2. Basic Filtering
A filter is a MongoDB filter written in JavaScript. Write the measures by their name: SoftyFlow looks for them in the measures of the instances. The SoftyFlow fields SF_status, SF_createdAt, SF_createdBy… are the status, the creation date and the initiator of the instance (for task reports: SF_assigned_users, SF_assigned_groups, SF_dueDate).
| Filter | Rows shown |
|---|---|
{ SF_status: "End" } | the completed instances |
{ report_status: "Refusée" } | the instances whose report_status measure is "Refusée" |
{ montant_total: { $gte: 1000 } } | the instances whose total is 1000 or more |
5.3. Dynamic FilteringDirect link to 5.3. Dynamic Filtering
Write a variable of the page between double braces: it is replaced by its value when the table loads its rows. For example, with a number field whose model is montantMin:
{ montant_total: { $gte: {{montantMin}} } }
The variables can be linked to input fields of your web interface, allowing users to filter the report dynamically.
5.4. Advanced Queries (Aggregation)Direct link to 5.4. Advanced Queries (Aggregation)
For more complex analytical needs, turn on Aggregation ("The query is a pipeline: [{ $match: … }, { $group: … }]."): the query becomes a MongoDB aggregation pipeline, an array of stages, to count instances, sum amounts or group them by status.
In a pipeline, the instances are read as they are stored:
- write the measures with their full path,
measures.<name>(for example"$measures.report_status"), and the SoftyFlow fields with their name in the instance (status,createdAt); - SoftyFlow adds the process, the environment and the filters of the report to the first
$matchstage of the pipeline (or adds one in front), and the columns of the report at the end: after a$group, name the countercount(only_idandcountare kept); - a pipeline sent from a page may only read:
$out,$merge,$function,$accumulator,$whereand any stage that is not a read stage are refused at any depth, and$lookup,$graphLookupand$unionWithmay only read the instances, the tasks and the SoftyFlow collections the user may read (and the processes and projects for an IDE user). A refused query fails with a 400 error "Aggregation refused: …" (see Rules applied by the server).
[
{ $group: { _id: "$measures.report_status", count: { $sum: 1 } } }
]

5.5. Testing the QueryDirect link to 5.5. Testing the Query
The Test the query block ("With trial values for the variables. Read only: nothing is changed.") runs the query on the TEST data of the report, without leaving the builder:
- Trial values (JSON): the values given to the variables of the query. The variables found in the query are added automatically.
- Run the test: Results shows the number of rows and the first rows, as the Table columns (the columns of the table) or as All the data (every property of the rows, handy to find the field names).
6. Process MeasuresDirect link to 6. Process Measures
Reports are automatically populated with key data points, known as process measures, which are defined in your process design. These measures are the building blocks of your reports.
6.1. Instance MeasuresDirect link to 6.1. Instance Measures
Standard measures available for every process instance include:
- Instance ID: A unique identifier for each process run.
- Process Name: The name of the associated process.
- Start/End Dates: The exact timeline of the execution.
- Status: The current state of the instance (e.g., running, completed, failed).
- Duration: The total time taken for the execution.
- Initiator: The user who started the process.
6.2. Task MeasuresDirect link to 6.2. Task Measures
Standard measures available for every user task include:
- Task ID: A unique identifier for each task.
- Task Name: The human-readable name of the task.
- Assignee: The user or group responsible for the task.
- Due Date: The deadline for task completion.
- Completion Date: The timestamp when the task was finished.
- Screen: The process step or form associated with the task.
- Priority: The importance level of the task.
7. Security and Access ControlDirect link to 7. Security and Access Control
A report has no access rights of its own, and it does not inherit the rights of its process. Any signed-in user who is not blocked can read the rows of a report: keep in a report only the measures that every user of your applications may see.
Building reports: only users with access to the IDE can create, change, preview or delete a report. The saved versions of a report are listed in its Version history.
Showing the rows: users see a report through a page that shows it (a Table widget with the Report source). Giving the interface and its menu entry to the right roles decides who finds the page in the applications; it is not a permission on the rows of the report.
Rows of the connected user: to show each user only their own rows, add a filter with the condition Connected user in the report editor (see Data Configuration):
- instance reports: Created by (the instances the user started);
- task reports: Assigned users or Assigned groups (the tasks assigned to the user or to one of their roles), Delegated to (the tasks of the users who delegated to them) or Assigned or delegated (both).
These filters are computed on the server with the identity of the connected user.
Filters are not permissions: the filters of the report (Connected user included) and the query of the table decide which rows a page shows. Do not rely on them, or on the roles of the page, to hide confidential data (salaries, personal data…): leave these measures out of the report.
8. Best PracticesDirect link to 8. Best Practices
To create effective and performant reports, follow these best practices.
8.1. Report DesignDirect link to 8.1. Report Design
- Use Clear Naming Conventions: Give your reports descriptive names that clearly indicate their purpose.
- Include Only Relevant Data: Avoid clutter by selecting only the columns necessary to achieve your analytical goal.
- Group Logically: Organize related measures together to improve readability.
- Optimize for Performance: For very large datasets, limit the default data scope to ensure fast load times.
8.2. Table ConfigurationDirect link to 8.2. Table Configuration
- Use Pagination: Always enable pagination for reports that may return large numbers of rows.
- Provide Smart Filters: Offer useful and intuitive filter options to your users.
- Configure for Export: Ensure your columns are configured correctly for clean and easy export.
- Ensure Mobile Friendliness: Test your reports on various devices to guarantee a responsive design.
8.3. Query OptimizationDirect link to 8.3. Query Optimization
- Be Specific with Filters: Use targeted queries to minimize the amount of data loaded from the database.
- Filter on Indexed Fields: For better performance, apply filters to database fields that are indexed.
- Set Reasonable Limits: Balance the need for comprehensive data with performance considerations.
- Consider a Cache Strategy: Evaluate if caching can be used for data that does not need to be real-time.
9. TroubleshootingDirect link to 9. Troubleshooting
If you encounter issues with your reports, here are some common problems and solutions.
9.1. Common IssuesDirect link to 9.1. Common Issues
- No Data is Displayed:
- Cause: Incorrect query syntax, a filter that excludes the rows (for example a Connected user filter, which only keeps the rows of the user), or no data in the environment.
- Solution: Check the filters of the report, run Test the query in the Data query popup of the table, and ensure there is data to be displayed.
- Slow Performance:
- Cause: The query is returning too much data, or the filters are not optimized.
- Solution: Reduce the query scope, add more specific filters, or apply filters to indexed fields.
- Missing Columns:
- Cause: The required measures are not configured in the process design.
- Solution: Navigate to the process design and ensure all necessary measures are defined and enabled.
- Export Problems:
- Cause: Incorrect data types or formatting issues.
- Solution: Check the column type configurations in your Table widget and ensure they match the data being displayed.
9.2. Debugging TipsDirect link to 9.2. Debugging Tips
- Test Queries in Isolation: Before adding a complex query to a report, test it independently to ensure it works as expected.
- Use Browser Developer Tools: Inspect the network requests and console logs in your browser to identify data loading issues.
- Verify User Permissions: Log in as a test user to confirm that the security settings are being applied correctly.
- Check System Logs: Review the application logs for any error messages related to report generation.
Next StepsDirect link to Next Steps
With a solid understanding of reporting, you are ready to continue developing your Softyflow application. Here are some recommended next steps:
- Web Interface Design: Build the user interfaces where your reports will be displayed.
- Process Design: Refine your processes to generate the data you need for insightful reporting.
- Database Integration: Connect to various data sources to enrich your reports.
- Integration: Integrate with external systems to pull in additional data for your reports.
- Test & Deploy: Thoroughly test your reports across different environments before deployment.
- Monitor & Run: Actively monitor your processes and use reports to gain continuous insights.
For hands-on experience, we highly recommend our step-by-step tutorials or watching our dedicated process and reports video tutorials.
For a deeper dive into advanced reporting features, explore our detailed documentation on Reports, the Table widget, and Process Measures.