Change Which Reviews a Permit Requires
Use this guide when a department must start or stop reviewing a permit type. A review requirement lives in three places that must agree: the status field for that review, the automation that creates the review task, and the automation that waits for all reviews to finish before the permit moves on.
Prerequisites
- A role that can edit entities and automations.
- The permit type and the department being added or removed.
- Which workflow shape the permit type uses:
- Sequential: one review after another. Each step's automation starts the next one.
- Parallel: one automation creates several review tasks at once, and a second automation waits until all of them are complete.
- A test record you can submit. See Test a Permit Automation.
Change the automations for one permit type at a time, publish each one, and test before moving on. A half-finished change can stop permits from advancing.
Steps: add a department to a parallel review
Add the department's review status field
If the permit entity has no status field for this review yet, add a dropdown (for example, Fire Review Status) with the same options your other review status fields use. See Add a Dropdown Field. Use the same option names so reviewers see the same choices and your completion conditions stay consistent.
Update the automation that creates the review tasks
Open it with Configure. Add a Create Records action for the new review task, set up like the existing ones (task type, link to the parent permit, assignee, due date). Then open the Update Record action that marks reviews as started and add the new status field, set to Pending.
Update the automation that waits for all reviews
Open the automation that starts the next stage. Select Add condition and add the new field: Fire Review Status is any of every value that counts as complete for your agency (for example, Approved, Approved with Conditions, Review Not Required). Keep all existing conditions.
Publish both automations
Select Publish on each. Until you do, the live versions keep running without the new department.
Test
Submit a test record. Confirm one extra review task appears, the next stage does not start while the new review is pending, and it does start once every review, including the new one, is complete.
Steps: remove a department from a parallel review
Update the automation that creates the review tasks
Remove the department's Create Records action, and remove its status field from the Update Record action. Publish.
Update the automation that waits for all reviews
Remove the condition on the department's status field. If you skip this, the next stage waits forever for a review that is never created. Publish.
Handle permits already in review
Open permits that already have a pending task for the removed department and set that review to a completion value such as Review Not Required, so the next stage can start.
Keep the old status field
Leave the department's status field on the entity. Existing records still hold values in it. Hide it from the form if it is no longer needed.
Steps: add or remove a step in a sequential review
To add a step, create one automation for it
Use When records matches condition with three kinds of condition: the routing values for the permit type, the previous step's status is any of its completion values, and the new step's status is empty. First action: Update Record to set the new step's status to Pending. Second action: Create Records for the review task.
Point the following step at the new one
In the automation that used to follow the previous step, change its completion condition to read the new step's status field instead. Publish both.
To remove a step, reverse it
Change the following step's condition back to the earlier step's status field, then turn off the removed step's automation with Toggle Status rather than deleting it. Move permits that were waiting at the removed step forward by setting the earlier step's status to a completion value.
Example
Adding a Fire review to the parallel reviews for a Commercial Building Permit.
| Item | Before | After |
|---|---|---|
| Status fields on the permit | Zoning, Building, Electrical Review Status | Adds Fire Review Status |
| Automation that creates review tasks | 3 Create Records actions | 4 Create Records actions |
| Its Update Record action | Sets 3 status fields to Pending | Sets 4 status fields to Pending |
| Automation that waits for all reviews | 3 completion conditions | Adds Fire Review Status is any of Approved, Approved with Conditions, Review Not Required |
| Test result | 3 tasks | 4 tasks; next stage starts only after Fire is complete |
Common mistakes
- Updating the task-creating automation but not the one that waits for all reviews, or the other way around.
- Forgetting to add the new status field to the Update Record action. The automation then matches again on the next edit and creates duplicate tasks.
- Accepting only Approved as complete, so a department that chooses Review Not Required blocks the permit.
- Giving the new status field option names that differ from the other review fields.
- Deleting a removed step's automation or status field. Turn the automation off and keep the field so history stays readable.
- Changing an assignee or due date in an automation and expecting existing tasks to change. Only tasks created after you publish use the new values; reassign existing tasks on the task records.