How the model is built
These six decisions shape everything else. If you remember only this section, you can rebuild the rest.
1. The property is the hub
The property is the standard Location object, keyed by Block, Lot and Qualifier from GIS. PSS Visit already points at Location, so no custom Parcel object is needed.
Applications, permits, inspections, complaints and conditions all carry Property__c. That makes "saved to property history" a related list, not a report.
2. A project is a Case
A Case with record type Permit Project groups the zoning, site improvement, construction and related permit applications for one piece of work. It uses the standard IndividualApplication.ApplicationCaseId field.
The "prior approvals, conditions and all fees satisfied?" gate only has to read one Case.
3. The request and the issued permit are separate records
IndividualApplication is the request and its review. BusinessLicense is what gets issued: permits and certificates (CO, TCO, Certificate of Approval).
An application ends at Issued or Denied. The permit then carries the inspection and certificate phase, plus the 12 month and 6 month validity rules.
4. Two statuses for two audiences
Status is what the applicant sees in the portal. InternalStatus is a standard field for staff only.
This implements the swimlane rule that internal statuses and departmental comments are never shown to applicants.
5. Rules are data, not code
These all live in Business Rules Engine decision matrices that township admins edit:
- document checklists
- fees
- related permits
- required inspections
- certificate type
- work classification
- the event approval matrix
- clock lengths
Most of Edison's open questions become rows in a matrix, not schema changes.
6. Custom only where PSS has nothing
There are four custom objects: statutory clocks, approval conditions, a fee ledger and plan review comments. Each is a child of a standard object and none duplicates one.
Decisions are records, documents are output. ApplicationDecision records the authorized official. A generated PDF never counts as an approval.
Big picture
The spine runs property, then project, then application, then permit, then inspections and certificate. Enforcement and hearings branch off the same property.
Domain map
Plain-language name on top, Salesforce object underneath. Drag, pan and zoom like the diagrams below.
Entity relationship diagrams
There are seven diagrams, one per area. Custom objects are shaded amber. Relationship labels are the lookup field names. Only fields that matter to Edison's flows are shown.
Every diagram is a live canvas. Drag any table to rearrange it and its lines follow. Drag the background to pan. Zoom with the buttons, a pinch, or Ctrl + scroll, or click into a canvas and plain scroll zooms. Your layout is remembered in this browser, and Reset restores the default.
A. Property, parties and the application spine
Used by all five scenarios.
B. Review, decision and documents
Zoning, engineering and each subcode review get one row per review cycle, and each comment is answered separately. The decision is its own record, signed by the authorized official.
C. Conditions and statutory clocks
Conditions carry a stage that drives the permit and certificate gates, and they stay on the property until cleared. Clocks hang off whichever record the deadline belongs to. An extension is a new clock row that supersedes the old one.
D. Fees, payments and escrow
One fee header per stage, with line items from the fee rules. All money movement goes through one ledger: payments, refunds, escrow draws and waivers.
E. Inspections and the field app
When a permit is issued, one Unscheduled Visit is created for each required inspection, in the required order. The applicant's request moves it to Planned and starts the 3 business day clock.
F. Zoning Board: variance or appeal
The Board application is an IndividualApplication. Each hearing and each court appeal is a CaseProceeding. Notice evidence is tracked as checklist documents on the proceeding.
G. Code enforcement: work without a permit
The complaint and the enforcement case are separate records, linked by the standard junction. Violations and enforcement actions use PSS objects with added values for Stop Work Order and Court Referral.
Object catalog
Every object in the model, what it holds for Edison, and the scenarios that use it: 1 addition or deck, 2 Zoning Board, 3 work without a permit, 4 water heater or furnace, 5 special event.
| Object | Kind | What it holds for Edison | Scenarios |
|---|---|---|---|
| Property and parties | |||
| Location | Standard + fields | The property or parcel. Block, Lot, Qualifier, zone district and owner of record come from the GIS and tax feeds. Everything on the property links here. | |
| Address | Standard | Street address of a Location; also Visit.AddressId. | |
| Account / Contact | Standard | Homeowners (person accounts), contractor, architect and engineering firms, portal users. | |
| PublicApplicationParticipant | Standard + values | Who is on an application and in what role: owner, contractor, architect, design professional, authorized agent, owner-builder. | |
| Configuration (admin maintained) | |||
| RegulatoryAuthority | Standard | Departments: Zoning, Construction, Engineering, Zoning Board, Code Enforcement, Clerk, Police, Fire Prevention, Health, Public Works. | |
| RegulatoryAuthorizationType | Standard | Catalog of everything Edison issues or checks: zoning permit, construction permit, site improvement permit, variance, appeal, event permit, related permits, CO, TCO, Certificate of Approval, contractor credentials (HIC, electrical, master plumber, HVACR). | |
| DocumentType | Standard | Survey, drawings, FAR sheet, F100, F100-2, F120, F130, F140, F145, F370, insurance, neighbor consent, outside agency approval. | |
| InspectionType | Standard | Footing, framing, rough electrical, mechanical final, final building, tent, food vendor and others. | |
| AssessmentTaskDefinition, AssessmentIndicatorDefinition | Standard | Inspection checklists and their questions, e.g. venting, relief valve, F370 check for a water heater. | |
| RegulatoryCode | Standard | Sections of the NJ UCC (N.J.A.C. 5:23), the Edison zoning ordinance and the MLUL, cited in reviews and violations. | |
| ViolationType | Standard + values | Work without a permit, work beyond permit scope, failure to file after notice. | |
| ActionPlanTemplate | Standard | Staff task lists, e.g. barricade service request (deliver, place, collect) and enforcement routines. | |
| Business Rules Engine | Standard | Expression sets and decision matrices for every configurable rule. See Rules. | |
| BusinessHours, Holiday | Standard | Edison working days and holidays for business day clock math (BusinessHours.add). | |
| Applications and review | |||
| Case | Standard + record types | Permit Project: groups a project's applications. Code Enforcement: the work without a permit case. A corrective permit's project Case has ParentId set to the enforcement Case. | |
| IndividualApplication | Standard + record types + fields | Every application, with six record types: Zoning, Site Improvement, Construction, Zoning Board, Special Event, Related Permit. Amendments are child applications through ParentApplicationId. | |
| DocumentChecklistItem | Standard | Each required upload on an application, hearing or violation, with accepted or rejected status and the validating user. | |
| ApplicationReview | Standard + fields | One row per reviewer per cycle: zoning, engineering, each subcode, each event department. IsRequired marks reviews that block issuance. Licence check needed, see Decisions. | |
| Review_Comment__c | Custom | Each plan review comment, the code section, and the applicant's response. | |
| ApplicationDecision | Standard | The authorized official's decision, recorded separately from any generated document. | |
| Approval_Condition__c | Custom | Conditions from zoning, the Board resolution, Engineering or event departments, sorted by stage and kept on the property until cleared. | |
| Regulatory_Clock__c | Custom | Every statutory deadline: 20 and 7 business day decisions, 3 day inspections, 45 and 120 day Board clocks, appeal windows, filing after notice, compliance deadlines, abandonment and validity. | |
| Fees | |||
| RegulatoryTrxnFee, RegulatoryTrxnFeeItem | Standard + fields | One fee per stage (zoning, plan review, permit, engineering, escrow, event deposit, police detail, penalty) with calculated line items. | |
| Fee_Transaction__c | Custom | The money ledger: online and offline payments, receipts, refunds, escrow draws, waivers and adjustments with the approving official. | |
| Permits, inspections and certificates | |||
| BusinessLicense | Standard + fields | Issued permits (zoning, construction, site improvement, event, related) and certificates (CO, TCO, CA) linked to the permit. Also holds contractor credentials on firm Accounts for licence checks. | |
| Visit | Standard + fields | Each inspection or site visit, with result, order and reinspection link. | |
| AssessmentTask, InspectionAssessmentInd, AssessmentTaskContentDocument | Standard | Checklist results and photos captured in the inspector field app. | |
| ActionPlan | Standard | Running instance of a template on an application or case, e.g. barricade delivery. | |
| Hearings, enforcement and appeals | |||
| CaseProceeding, CaseProceedingParticipant | Standard + fields | Zoning Board hearing, Superior Court appeal, County Construction Board of Appeals, Municipal Court. Licence check needed. | |
| PublicComplaint, ComplaintParticipant, ComplaintCase | Standard + fields | Complaint intake from any channel, the confidential complainant, and the link to the enforcement Case. | |
| RegulatoryCodeViolation | Standard + fields | The violation found on site, tied to the code section and the inspection that found it. | |
| ViolationEnforcementAction | Standard + values | Notice of Violation, Stop Work Order, civil penalty, court referral. Penalties hang a RegulatoryTrxnFee off this record. | |
The four custom objects
Each one is a child of a standard object, and each fills a gap PSS does not cover. None of them duplicates a standard object.
Custom Regulatory_Clock__c
| Clock_Type__c | Completeness, Decision, Resubmission Decision, Inspection Scheduling, Filing After Notice, Board Completeness, Board Decision, Resolution, Appeal Window, Compliance, Abandonment, Work Start, Work Suspension |
| Day_Basis__c | Business Days, Calendar Days, Hours |
| Start__c, Due__c | Due date computed with BusinessHours.add when the basis is business days |
| Status__c | Running, Paused, Met, Missed, Superseded, Cancelled |
| Paused_Since__c | Set while the applicant owes something |
| Supersedes__c | Self lookup. An extension is a new row with Extension_Reason__c, Approved_By__c, Applicant_Consent__c |
| Parent lookups | Application__c, Permit__c, Visit__c, Proceeding__c, Violation__c |
Custom Approval_Condition__c
| Application__c | The application that imposed it |
| Property__c | Location, so the condition stays on the property record |
| Department__c | RegulatoryAuthority that owns it |
| Source__c | Zoning Officer, Board Resolution, Engineering, Subcode, Event Department |
| Stage__c | Before Permit, During Construction, Before Certificate, Before Event |
| Condition__c | Long text of the condition |
| Status__c | Open, Satisfied, Waived, plus Cleared_By__c and Cleared_On__c |
FundingAwardRequirement) but nothing for permit conditions. Stage__c drives the two gates: no open Before Permit condition at issuance, and no open Before Certificate condition at CO.Custom Fee_Transaction__c
| Regulatory_Fee__c | Lookup to RegulatoryTrxnFee |
| Type__c | Payment, Refund, Escrow Draw, Escrow Refund, Adjustment, Waiver |
| Amount__c | Currency |
| Method__c | Card, ACH, Check, Cash, Money Order |
| Processor_Reference__c | Payment gateway id for online payments |
| Receipt_Number__c | Issued for online and counter payments |
| Recorded_By__c, Approved_By__c | Staff who took it, official who approved an adjustment, waiver or refund |
| Reconciled__c | Finance reconciliation flag |
RegulatoryTrxnFee holds what is owed and its status. It has no ledger for partial payments, counter receipts, escrow draws or refunds. Payment processor integrations are a standard reason to go custom.Custom Review_Comment__c
| Application_Review__c | The subcode or department review that raised it |
| Application__c | For the portal list of open comments |
| Code_Section__c | Lookup to RegulatoryCode |
| Sheet__c | Drawing sheet or page reference |
| Comment__c | Reviewer comment |
| Applicant_Response__c | Response on resubmission |
| Status__c | Open, Responded, Resolved |
ApplicationReview has a single comment field. The swimlane requires "respond to each comment" across resubmission cycles, and repeating items belong in rows, not text blobs.Fields and values added to standard objects
These extend standard objects in place. No standard object is cloned.
| Object | Added |
|---|---|
| Location | GIS_Parcel_Id__c (external id, unique), Block__c, Lot__c, Qualifier__c, Zone_District__c, Lot_Area_SqFt__c, Owner_Name__c, Owner_Mailing_Address__c |
| Case | Record types Permit Project and Code Enforcement; Property__c; Closure_Approved_By__c |
| IndividualApplication | Six record types; Property__c, Performed_By__c (Contractor, Owner-Builder), Work_Class__c, Notice_Date__c, Scope_Subcodes__c, Adds_Area_Or_Height__c, Estimated_Cost__c, Construction_Volume__c, Board_Application_Type__c, event fields (Event_Type__c, Event_Start__c, Event_End__c, Rain_Date__c, Event_Activities__c, Street_Closure__c, Road_Segment_Ids__c), Override_Reason__c, Override_By__c. Status and InternalStatus values per Lifecycles |
| BusinessLicense | Record types Permit, Certificate, Contractor Credential; Property__c, Parent_Permit__c, Work_Started_On__c, Last_Activity_On__c; Status values Active, Suspended, Invalid, Certificate Issued, Closed, Revoked |
| ApplicationReview | Cycle__c; Type values for each discipline and department |
| RegulatoryTrxnFee | Fee_Stage__c, Balance__c |
| Visit | Result__c, Sequence__c, Requested_On__c, Requested_By__c |
| CaseProceeding | Outcome__c, Votes_For__c, Votes_Against__c, Decision_Date__c, Resolution_Date__c, Publication_Date__c |
| PublicComplaint | Property__c, Intake_Channel__c; ComplaintType value Work Without a Permit |
| RegulatoryCodeViolation | Enforcement_Case__c, Property__c |
| ViolationEnforcementAction | Type values Stop Work Order and Court Referral; Issued_By__c, Lifted_On__c |
| PublicApplicationParticipant | Role values Owner, Contractor, Architect, Design Professional, Authorized Agent, Owner-Builder |
Scenario walkthroughs
Each swimlane step and the records it creates or updates. Read this to check the model against the PDF.
1 Home addition or deck
- Address and project type enteredLocation matched on GIS_Parcel_Id__c; Case (Permit Project); IndividualApplication (Zoning)
- Rules build the checklistDocumentChecklistItem rows, zoning RegulatoryTrxnFee, related applications under the same Case
- Who submits, who performs the workPublicApplicationParticipant roles; contractor credentials checked on the firm's BusinessLicense rows; F100-2 as a checklist item
- Zoning reviewApplicationReview (Zoning) and ApplicationDecision; denial opens scenario 2
- Site Improvement in parallelIndividualApplication (Site Improvement), ApplicationReview (Engineering), escrow fee and ledger, Approval_Condition__c
- Construction application completeIndividualApplication (Construction); RequirementsCompleteDate starts a 20 business day Regulatory_Clock__c
- Subcode plan review and resubmissionApplicationReview per subcode per cycle, Review_Comment__c rows, new 7 business day clock per resubmission
- Fees recalculated and paidRegulatoryTrxnFeeItem lines; Fee_Transaction__c payment
- Prior approvals gateZoning and site permits issued, no open Before Permit conditions, all fees PAID, else On Hold
- Permit issuedApplicationDecision; BusinessLicense (Permit); Unscheduled Visit rows in required order
- InspectionsVisit Planned on request with 3 day clock; AssessmentTask results and photos; failed results get a reinspection Visit via ParentVisitId
- Certificate and closeBusinessLicense (CO, TCO or CA) with Parent_Permit__c; escrow refund in the ledger; permit Closed; assessor notified
2 Zoning Board variance or appeal
- Variance or appeal filedIndividualApplication (Zoning Board) with Board_Application_Type__c; an appeal also gets a 20 day filing window clock
- Completeness within 45 daysRegulatory_Clock__c (Board Completeness); RequirementsCompleteDate then starts the 120 day clock
- Extension with consentNew clock row superseding the old one, with Applicant_Consent__c and the consent document
- Notice and hearingCaseProceeding (Board Proceeding, Review Hearing); 200 ft list, proof of service and publication affidavit as DocumentChecklistItem
- Vote and resolutionVote and Decision_Date__c on the proceeding; ApplicationDecision; 45 day resolution clock; conditions as Approval_Condition__c by stage
- Notice of decision publishedPublication_Date__c starts the 45 day appeal clock
- Superior Court appealCaseProceeding (Court Action, Appeal) with RelatedCaseProceedingId set to the hearing; Outcome__c
- Zoning permit issuedBusinessLicense (Zoning Permit) after pre-issuance conditions clear; back to scenario 1
3 Work without a permit
- Complaint receivedPublicComplaint with Intake_Channel__c; ComplaintParticipant (Reporter); IsReporterConfidential when anonymous
- Case on the propertyCase (Code Enforcement) with Property__c, linked by ComplaintCase; active permits checked by property
- Site visitVisit (ContextId set to the Case) with findings and photos; exempt work closes the Case
- Notice of Violation, Stop Work OrderRegulatoryCodeViolation; ViolationEnforcementAction rows per notice
- Appeal within 15 daysCaseProceeding (Board Proceeding, Appeal) on the Case; 15 day filing and 10 business day decision clocks
- Corrective permitNew Permit Project Case with ParentId set to the enforcement Case; filing alone never closes enforcement
- ExtensionSuperseding Regulatory_Clock__c on the violation with reason and approving official
- Reinspect, escalate, courtReinspection Visit; Civil Penalty action with RegulatoryTrxnFee; CaseProceeding (Court Action)
- Formal closureViolation Resolved; Case closed with Closure_Approved_By__c; linked records closed separately
4 Water heater or furnace replacement
- Work classifiedWork Classification matrix; ordinary maintenance saves nothing; standard work goes to scenario 1
- Notice givenIndividualApplication (Construction) with Work_Class__c Minor or Emergency and Notice_Date__c; filing clock of 5 business days or 72 hours
- Reminder or overdueScheduled job on open clocks; overdue opens an enforcement review task, never an automatic penalty
- Filing and reviewF100, F130 or F145, F120, F370 as checklist items; ApplicationReview per subcode
- FeeRegulatoryTrxnFee; Fee_Transaction__c online or recorded by staff
- Permit and inspectionBusinessLicense (Permit); Visit rows from the Required Inspections matrix by equipment
- Certificate of ApprovalBusinessLicense (Certificate) with Parent_Permit__c; permit Closed
5 Block party or special event
- IntakeIndividualApplication (Special Event) with event fields, Property__c and Road_Segment_Ids__c
- Clash or late filingCalendar and roadwork check; override stores Override_Reason__c and Override_By__c, field history audited
- Approval matrix sorts tasksBlocking approvals as ApplicationReview with IsRequired true; separate permits as IndividualApplication under the same Case; service requests as ActionPlan; outside agency approvals as DocumentChecklistItem; notices only as notifications
- Corrections or denialApplicationReview recommendation routes back to that department; denial via ApplicationDecision with reasons and appeal rights
- Street closureApplicationReview (Police Chief), required before issuance
- Permit issuedBusinessLicense (Event Permit); Approval_Condition__c with Stage Before Event
- Inspections and event dayVisit for tents, cooking and food vendors; revocation sets permit status Revoked
- Close-outDeposit reconciled through Fee_Transaction__c refund; application Closed
Shared across all five
- Audit: each decision record names its official:
ReviewedById,DecisionAuthorityId,Approved_By__c,Issued_By__c, the Visit inspector. Field history tracking covers status changes. - Notifications: flows on status changes, with templates per audience (applicant, owner, complainant, residents). They are not stored as review tasks.
- Documents: permit PDF, CO, NOV and resolution come from PSS Document Generation. A generated document is never the approval.
- Property history: related lists on Location for applications, permits, certificates, visits, violations, complaints and conditions.
- Status rules: abandonment after 6 months, no start in 12 months, and stopped for 6 months each run as clocks. A scheduled job moves records to Abandoned or Invalid.
Lifecycles
Status values per record. Grey values are end states.
Application IndividualApplication.Status, portal facing
InternalStatus (staff only) adds: Completeness Check, Zoning Review, Engineering Review, Subcode Review, Resubmission Review, Fee Recalculation, Prior Approvals Check, Awaiting Construction Official.
Permit BusinessLicense.Status
Suspended while a Stop Work Order stands. Invalid when work does not start within 12 months or stops for 6.
Inspection Visit.Status + Result__c
Unscheduled rows are created at permit issue. A request moves the row to Planned. A failed result spawns a child Visit.
Zoning Board Application + CaseProceeding
Enforcement Case (Code Enforcement)
Special event IndividualApplication (Special Event)
Rules that drive the model
Business Rules Engine decision matrices and expression sets. Township admins maintain the rows. Flows call the rules and write the records.
| Rule | Inputs | Writes | Scenarios |
|---|---|---|---|
| Checklist Builder | Permit type, scope, performed by | DocumentChecklistItem rows | |
| Related Permits | Parcel attributes, scope, impervious change, land disturbance | Child IndividualApplications: Site Improvement, tree removal, soil, street opening | |
| Contractor Credentials | Subcodes in scope | Credential types to verify: HIC, electrical, master plumber, HVACR | |
| Fee Schedule | Fee stage, volume, cost, fixtures, event type | RegulatoryTrxnFeeItem lines | |
| Required Inspections | Permit type, subcodes, equipment | Unscheduled Visit rows with Sequence__c | |
| Certificate Type | Adds area or height, scope | CO, TCO or Certificate of Approval | |
| Work Classification | Equipment, like capacity, emergency | Work_Class__c: Maintenance, Minor, Emergency, Standard | |
| Event Approval Matrix | Event type, activities, street closure, location | Blocking reviews, notices, separate permits, service requests, inspections, outside agency items | |
| Clock Rules | Clock type | Length, business or calendar basis, pausing statuses |
Integration touchpoints
Each external system lands on a specific object. All are still listed as "to confirm" in the swimlanes.
| System | Object it touches | Direction |
|---|---|---|
| GIS and parcels | Location (parcel, zone, lot area); event road segments | Inbound lookup |
| Tax assessment and ownership | Location owner fields; certificate notice to the assessor | Both |
| Finance and payments | Fee_Transaction__c | Both |
| NJ State reporting | BusinessLicense, Visit, certificates | Outbound |
| Contractor licence lookup | BusinessLicense (Contractor Credential) | Inbound |
| Roadwork and event calendars | Special Event clash check | Inbound |
| Current permitting system | Location, IndividualApplication, BusinessLicense, Visit history | One-time migration |
Decisions and checks before build
The model is sound on paper. These items need answers in Edison's actual org before anyone builds metadata.
Verify in Edison's org
- ApplicationReview and ApplicationDecision come from the Grantmaking module. Confirm Edison's PSS licences let staff create them. If not, use one custom
Plan_Review__cchild of IndividualApplication with the same fields. - CaseProceeding showed as not createable for the profiling user. Confirm with the Public Sector Access licence. Fallback: custom
Hearing__c. - Polymorphic and lookup targets:
Visit.ContextIdaccepts Case, and custom lookups to RegulatoryTrxnFee, ApplicationReview and CaseProceeding are allowed. - Portal licence: the communities permitting licence must cover every object applicants see: applications, checklist items, fees, visits, comments and conditions.
- Field users: inspectors need Public Sector Field Access for Visit and the mobile app. That is a cost Edison pays per inspector.
Decide before build
- Person Accounts for homeowners. Recommended. Enabling them is permanent, so get sign-off first.
- Portal sharing for multi-party applications. The owner, contractor and architect all need the same record. Sharing sets key off one lookup, so participant-based access needs Apex managed sharing driven by PublicApplicationParticipant.
- Audit retention. Field history keeps 18 months in the UI and 24 months through the API, while permit records must be kept far longer. Pick a custom status history log or a scheduled export.
- One Case per project, always. Even single-application work like a water heater opens a Permit Project Case, so the portal's "My Projects" list stays uniform.
- Event road segments are stored as GIS ids on the application. If Edison needs clash checks per street, add a junction to Location.
Edison's open questions are configuration, not schema
- Sequential or concurrent reviews: only when ApplicationReview rows are created.
- Fee stages: how many RegulatoryTrxnFee rows per project.
- Applicants book or request inspections: the Visit status path in the portal.
- Site Improvement thresholds: rows in the Related Permits matrix.
- Certificate type for decks and accessory structures: rows in the Certificate Type matrix.
- Issuing office and mandatory approvals per event type: rows in the Event Approval Matrix.
Out of scope for this model
- Notification templates and SMS channel choice
- Document generation templates (permit, CO, NOV, resolution)
- GIS layers and road segment geometry
- OmniScript and FlexCard design for the portal
- Data migration mapping from the current permitting system