Workflow Templates & Steps
Before starting a service flow, managers define its structure using templates. Think of a template as the master checklist for a service.
What is a Workflow Template?
A template holds the instructions, steps, custom fields, and mandatory options for a specific task. By using templates, every request follows the exact same process without skipped steps.
Anatomy of a Template
- Template Name & Category: E.g. "Residential Fiber Installation" (Category: Installation).
- Steps List: Defined sequentially (Step 1, Step 2, Step 3, etc.).
- Custom Fields: Associated with specific steps to gather data from users.
Template CRUD Operations & Admin Buttons
Managers use the template control panel to manage the system structure. The following CRUD (Create, Read, Update, Delete) buttons are available in the templates manager dashboard:
Database Validation Constraints on Templates
The system enforces strict business rules before allowing changes to the template schema:
- Template Name Uniqueness: No two templates can share the same name to prevent routing confusion during instance creation.
- Empty Step Check: You cannot save a template without defining at least one step.
- Reference Integrity check: A template cannot be deleted if active service flows are running on it. You must complete or delete all dependent instances first.
- Step Order Integrity: Sequential numbers must start at 1 and rise continuously. The database prevents duplicate step ranks.
Step Configurations
Each step in a template represents a separate milestone. For example, in a Credit Card Application, the steps are:
Field Types & Rules
Inside any step, managers can create multiple custom fields to enforce data consistency. Field inputs can be:
- Text: A single line of text (like Serial Numbers or ID numbers).
- Number: Numeric values (like Signal Strength in dBm or Monthly income).
- Select (Dropdown): A dropdown list of pre-configured options (like "Passport", "Driving License", "National ID").
- Boolean (Yes/No): Checkbox field for verifying actions (like "Original document checked?").
Mandatory vs. Optional Fields
If a field is marked Mandatory (Required), the system will prevent users from submitting the step or requesting approval until that field has a valid value. Optional fields can be left blank.