Purpose Statement
- The purpose of this article is to demonstrate how to create an Error Validation Workflow for fire reports. This workflow helps ensure that required data is completed accurately before a report can be submitted.
Background Information
An Error Validation Workflow allows you to enforce data quality rules by requiring certain fields to be completed when specific conditions are met. These workflows enhance accuracy, reduce submission errors, and help maintain compliance by flagging missing or incorrect information before submission.
Use Case Example:
If your agency requires the Response Zone field to be filled out for certain incident types, an error validation workflow can be configured to enforce that rule. If the field is left blank, the system will prevent the report from being submitted until it is completed.
Video
Step-by-Step Guide
1. Access the Workflow Setup
- Go to Incident Documentation > Fire Incident Setup and select the Workflows tab.
2. Create a New Workflow
- Click the + Add New button.
3. Select the Field
- Use the search or scroll function to locate the field you want to validate.
Note: If the field is not selectable, it already has a workflow applied. You need to edit the existing workflow.
4. Choose Workflow Type
- Select Error Validation Workflow, then click the plus (+) icon to begin.
5. Enter Description and Validation Message
- Provide both a:
- Description: Used as an internal reference
- Validation Message: This will be displayed to users completing the report when the field is incomplete
- Both fields are required.
6. Add Conditions or Groups
- Choose to:
- Add Condition: A specific rule that triggers validation
- Add Group: A logical grouping of conditions (AND = all must be true, OR = any can be true)
7. Define a Condition
- Click Add Condition and set the following:
- When: The field to evaluate
- Condition: The logic to apply (e.g., equals, empty)
- Parameter: The value to compare (if applicable)
8. Add a Group (Optional)
- Click Add Group to combine multiple conditions. Choose AND or OR logic depending on whether all or any of the conditions must be true.
9. Define Condition Field
- Under When, choose a field to base the condition on using the dropdown or search bar.
10. Choose a Condition
- Select the condition logic (e.g., in, not in).
11. Choose Parameter(s)
- Based on the condition, define the parameter(s) to complete the rule.
12. Set Additional Validation
- To validate the Response Zone, add a second condition, for example:
- When = Response Section > Response Zone
- Condition = empty
This will ensure that the system flags the missing field when the other parameters are met.
13. Use Logical Relationships
- Use AND when all conditions must be met.
- Use OR when any single condition can trigger the workflow.
14. Select a condition.
- For this example set the condition to Empty
15. Important Behavior
- Empty/Not Empty conditions do not require a parameter.
- If a condition using Empty or Not Empty is selected, the Parameter field will be disabled.
16. Manage Workflow Items
- Use + / – to add or remove rules
- Click the paper icon to duplicate existing rules
17. To Delete Conditions or Groups
- Use the trash can icon to delete individual conditions or groups
18. Confirm Deletion
- Click Confirm in the warning modal to delete the condition or group.
19. Save the Workflow
- Once all logic has been set, click Save to apply the workflow.
20. Test the Workflow
- Open an incident report.
- If the Primary Incident Type Found matches your condition(s)
- And the Response Zone field is left empty the report cannot be submitted until the field is completed.
Best Practices
- Do: Use clear validation messages that tell the user exactly what to correct.
- Don't: Overuse error validation on optional fields — reserve it for critical data.
- Tip: Test workflows using a sample report before rolling them out agency-wide.
Troubleshooting & FAQs
Q: Why is my workflow not triggering?
A: Ensure that:
- Your conditions are properly defined
- The field values in the report match those specified in the workflow
- You're not using conflicting or overlapping rules
Q: Why can’t I select a field?
A: Only one workflow per field is allowed. Edit the existing workflow to modify or add conditions.