Measures
Measures are key performance indicators (KPIs) and data points that are calculated dynamically during process execution. They enable powerful reporting, analytics, and process monitoring capabilities by extracting and transforming business data from your process variables.

The measures of a process are set in the Measures drawer of the process builder, opened with the Measures button of the action rail on the right. Each row turns workflow data into a value that the reports, tables and filters can use.
1. OverviewDirect link to 1. Overview
Process measures serve as the bridge between your workflow execution data and business intelligence. They allow you to:
- Track KPIs in real-time during process execution
- Generate reports with meaningful business metrics
- Monitor performance across process instances
- Analyze trends and patterns in your workflows
- Create dashboards with calculated business values
2. How Measures WorkDirect link to 2. How Measures Work
2.1. Calculation TimingDirect link to 2.1. Calculation Timing
Measures are calculated automatically at key points during process execution:
- Process Start: Initial calculation with starting variables
- Before User Tasks: Updated with current process state
- Task Completion: Recalculated after task completion
- Process Events: Updated during timer events, service calls, etc.
- Process End: Final calculation for completed instances
The measures belong to the process, not to a version: once saved, they are used right away by the instances of every environment (Test, UAT and Prod), at their next step. The instances that have ended, or that do not move, keep their former values until you recalculate the measures.
2.2. Data StorageDirect link to 2.2. Data Storage
- Measures are stored in the process instance database
- Values are indexed for fast report queries
- Historical data is preserved for trend analysis
- Both current and historical values are available for reporting
3. Measure ConfigurationDirect link to 3. Measure Configuration
To set the measures of a process:
- Open the process in the builder.
- Click Measures in the action rail on the right of the builder. The Measures drawer opens: "Values computed on every instance, for reports, tables and filters." A reminder sits at its top: "The value is a JavaScript string; insert a variable with:
{{ }}". - Each measure is a row with three fields, under the Name, Type and Value headers. Edit the rows, or click the bin (Delete the measure) at the end of a row to remove it. A process without measures shows "No measure yet."
- Click Add a measure (below the rows) to add a row: it starts with
label, String andfield, to replace with your own name, type and value. - Click Save the measures at the bottom of the drawer. The message "Measures updated successfully" confirms the save.

This configuration panel enables you to create custom business metrics by defining a descriptive name, selecting the appropriate data type, and writing JavaScript expressions that calculate values from your process variables.
Save Process (or Ctrl + S) does not save the measures: only Save the measures does. A change that you have not saved with this button is lost when the drawer opens again, because it reloads the saved measures.
3.1. Basic PropertiesDirect link to 3.1. Basic Properties
Each measure consists of three essential components:
3.1.1. NameDirect link to 3.1.1. Name
- Purpose: The name/identifier for the measure
- Usage: Used as column names in reports and dashboards
- Example:
TotalCost,ProcessingTime,CustomerSatisfaction - Best Practice: Use descriptive, consistent naming conventions, with letters, digits and
_only (no spaces or dots): the name is the key of the value in the instance - Reserved Names: Don't reuse the names of the system measures (
SF_last_activity_name,SF_priority…, see System Default Measures): the engine overwrites them
3.1.2. TypeDirect link to 3.1.2. Type
Defines how the measure value should be processed and stored. The examples below are what you type in Value:
- String: Text values, categories, status descriptions, stored as text
- Example:
Approved,{{department}},{{ montant > 1000 ? "High Priority" : "Normal" }}
- Example:
- Number: Numeric calculations, counts, monetary values, converted to a number
- Example:
45,{{montant}},{{ montant * 1.2 }}
- Example:
- Boolean: Yes/no indicators. There is no conversion: the measure holds the text
"true"or"false", not a real boolean. In a script the text"false"counts as true, and a filter on a real boolean does not match it: compare with the text- Example:
{{ montant > 1000 }}
- Example:
- Date: Timestamps, deadlines, milestones, converted to a date. Keep the
{{ }}around an expression: without them,new Date()stays plain text and gives an invalid date- Example:
{{date_souhaitee}},{{ new Date() }}
- Example:
- Any: Complex objects, arrays, or mixed data types. The measure keeps the result of the expression, whatever its type
- Example:
{{ items }}(a variable that holds an object or an array)
- Example:
3.1.3. Value (JavaScript Expression)Direct link to 3.1.3. Value (JavaScript Expression)
The JavaScript expression that calculates the measure value using process variables. The value is a string in which each {{ }} is replaced by the result of the JavaScript expression it contains, computed with the variables of the instance:
- A variable:
{{montant}},{{request_id}} - A path or several parts:
{{SF_initiator.firstName}} {{SF_initiator.lastName}} - A calculation:
{{ montant * 1.2 }},{{ params.customer ? params.customer.name : "Unknown" }}
Only Number and Date convert the result (to a number, to a date). String and Boolean keep it as text, so a Boolean measure holds the text "true" or "false". With Any, the expression is evaluated as is, so that a variable holding an object or an array keeps it ({{ items }}): write a single {{ }} in this case. Don't write braces { } inside the expression (object literals, blocks): they are removed before it runs.
A value that fails gives an empty measure. This includes a value that reads a variable missing from the instance, even inside a condition such as {{ customer ? customer.name : "Unknown" }}. To test a variable that may be missing, read it through params, which holds all the variables of the instance (params.customer). The former ${ } syntax still works but is deprecated.
4. Recalculating the MeasuresDirect link to 4. Recalculating the Measures
When you add a measure to a process or change its value, the instances that have ended keep their former values, and a running instance only gets the new value at its next step. To update every instance of a process at once, recalculate its measures from the Run mode of the project:
- Switch the project to Run (mode bar at the top right, or Alt + 4) and click Measures in the dock ("Recalculate the measures"). The Recalculate measures card opens: "On every instance of a process, in one environment".
- Process: choose the process.
- Measures: choose the measures to recalculate among the saved measures of the process, or click All · n to take them all. A process without measures shows "This process has no measure."
- Environment: Test, UAT or Prod.
- Click Recalculate. The card asks for confirmation, for example "Recalculate 15 measures of “Demande d'achat” on every instance in Test?" (shown as a warning in Prod). Click Confirm, or Cancel.

A progress bar then counts the instances processed until "Recalculation done". Each chosen measure is calculated again with its current value, from the variables of the instance (for a running instance, those of its current step), on the instance and on its tasks. Every instance of the process in that environment is processed, whatever its status or its version; the reports then show the new values. See also Recalculating the Measures in Monitor & Run; the values of one instance are shown, and can be edited, in its Measures view.
5. System Default MeasuresDirect link to 5. System Default Measures
Softyflow automatically provides several system measures for every process:
5.1. Process Tracking MeasuresDirect link to 5.1. Process Tracking Measures
SF_last_activity_name: Name of the last executed activitySF_involved_users: Array of all users who participated in the processSF_involved_validators: Array of users who validated tasksSF_involved_roles: Array of roles that were assigned tasksSF_observer: Array of observer rolesSF_priority: Current process priority levelSF_description: Process description text
5.2. Instance Metadata (Available in Reports)Direct link to 5.2. Instance Metadata (Available in Reports)
SF_status: Process instance status (running, completed, error)SF_name: Process instance nameSF_createdAt: Process start timestampSF_updatedAt: Last update timestampSF_createdBy: Process initiator information
6. Using Measures in ReportsDirect link to 6. Using Measures in Reports

This report configuration view demonstrates how process measures become available as report columns, enabling users to select, filter, sort, and visualize custom metrics alongside system-generated data for comprehensive analytics.
6.1. Report Column ConfigurationDirect link to 6.1. Report Column Configuration
Measures become available as columns in your reports. In the report editor, the measures of the processes of the report are listed in the Process measures group of the fields palette, on the left: click a measure to add it as a column (see Configuring Your Instance Report). When configuring report columns:
- Custom Measures: All process measures appear as selectable columns
- System Measures: Built-in measures are automatically available
- Data Types: Column types match the measure type configuration
- Filtering: Measures can be used for report filtering and sorting
7. Best PracticesDirect link to 7. Best Practices
7.1. Measure DesignDirect link to 7.1. Measure Design
- Meaningful Names: Use descriptive names that business users understand
- Consistent Naming: Follow naming conventions across all processes
- Appropriate Types: Choose the correct data type for each measure
- Performance Considerations: Avoid overly complex calculations
7.2. Expression WritingDirect link to 7.2. Expression Writing
- Error Handling: Use conditional logic to handle null/undefined values
- Type Safety: Ensure calculations match the expected data type
- Readability: Keep expressions clear and well-documented
- Testing: Test expressions with various data scenarios
7.3. Report IntegrationDirect link to 7.3. Report Integration
- Column Selection: Include relevant measures for your analysis needs
- Filtering Strategy: Use measures for effective data filtering
- Aggregation Planning: Consider how measures will be grouped and summarized
- Performance Optimization: Be mindful of query complexity with many measures
8. TroubleshootingDirect link to 8. Troubleshooting
8.1. Common IssuesDirect link to 8.1. Common Issues
8.1.1. Expression ErrorsDirect link to 8.1.1. Expression Errors
- Symptom: Measure shows empty value
- Cause: JavaScript expression error or variable missing from the instance
- Solution: Check variable names, and read a variable that may be missing through
params
// Problem: The variable might not exist in the instance
{{ customer.name }}
// Solution: Read it through params, which holds all the variables
{{ params.customer ? params.customer.name : "Unknown" }}
8.1.2. Type MismatchesDirect link to 8.1.2. Type Mismatches
- Symptom: Unexpected values in reports
- Cause: Expression returns different type than configured
- Solution: Ensure expression result matches measure type
// Problem: String returned for Number type
{{ status === "active" ? "Yes" : "No" }}
// Solution: Return numeric value
{{ status === "active" ? 1 : 0 }}
8.1.3. Performance IssuesDirect link to 8.1.3. Performance Issues
- Symptom: Slow report generation
- Cause: Complex measure calculations
- Solution: Simplify expressions or pre-calculate values
8.1.4. Old Values on Existing InstancesDirect link to 8.1.4. Old Values on Existing Instances
- Symptom: A new or changed measure is empty or outdated on existing instances
- Cause: The measures are only calculated when an instance moves to a step
- Solution: Recalculate the measures from the Run mode of the project
8.2. Debugging TipsDirect link to 8.2. Debugging Tips
- Test Variables: Verify process variables contain expected data
- Simplify Expressions: Start with simple expressions and add complexity gradually
- Check Types: Ensure measure types match expression outputs
- Monitor Performance: Watch for calculation time in process logs
Process measures are powerful tools that transform your workflow data into actionable business intelligence. By properly configuring and utilizing measures, you can create comprehensive reporting solutions that provide deep insights into your business processes and their performance.