Priyex Enterprise HRMS Architecture & Operational Manual
Priyex.HRMS

Enterprise Operational Manual & End-to-End Architecture Guide

A comprehensive reference specification detailing all 9 core operational workflows โ€” from logical multi-tenant data perimeters to real-time biometric attendance, continuous Indian payroll calculation, and role-based governance.

Document Version
v2.4.0 (Enterprise Edition)
Security Level
Strict Logical Isolation
Statutory Alignment
Indian Labor & Income Tax Acts
Status
Production Approved
๐Ÿ“‘ Operational Workflows Directory
Workflow 01 โ€ข Infrastructure

Multi-Tenant Architecture & Data Perimeter Isolation

Strict cryptographic tenant isolation with dynamic domain resolution

Priyex HRMS operates as a true multi-tenant Cloud HCM. Every client organization operates within a distinct logical tenant boundary. All persistent database records (employee rosters, biometric logs, salary registers, identity documents) are strictly bound to a tenant foreign key, enforced at the query level by Hibernate Session filters and Spring Security perimeters.

Architectural Pillars
1. Logical Schema Isolation Tenant identifier indexing ensures sub-millisecond multi-tenant queries without database proliferation overhead.
2. Domain Detection Engine Dynamic DNS and email domain lookups route user requests directly to corresponding organizational profiles.
3. White-Label Branding Independent branding injection dynamically loads client company logos, legal names, and primary color palettes.
4. Rapid Workspace Provisioning Automated database seeding provisions statutory defaults, base holiday calendars, and organization hierarchies in under 60 seconds.
Operational Execution Sequence
Phase Primary Actor Execution & System Action
1. Tenant Provisioning SaaS Administrator New client profile registered with corporate name, company code (e.g. TCS, WIPRO), and email domains. System creates tenant record and seeds standard leave and tax schemas.
2. Domain Binding Tenant Admin Corporate email domains (e.g., @company.com) bound to tenant profile, enabling zero-confusion client routing on the public portal.
3. Policy Customization HR Operations Configures shift timings, biometric geofence radius, and approval escalation tiers cached in memory for high-performance execution.
Core REST Endpoints
GET /api/v1/tenant/detect-domain?domain={corporateDomain} GET /api/v1/tenant/validate-company?code={companyCode} GET /api/v1/tenant/branding
Security Perimeter Note: Cross-tenant database queries are blocked unconditionally at the repository layer. Direct attempts to pass another tenant's entity identifier return HTTP 403 Forbidden with security logging.
Workflow 02 โ€ข Identity & Security

Identity Resolution, SSO & Cryptographic JWT Authentication

Stateless token authentication with automated domain-to-organization resolution

Authentication requires validation of three security parameters: Organization Code, Corporate Work Email, and Password / SSO SAML Assertion. The system executes domain verification, evaluates BCrypt credential hashes against the tenant's user table, and issues signed JSON Web Tokens (JWT) containing company context and assigned authorization claims.

Execution Journey
Step Actor Technical Operations
1. Email Resolution User User inputs corporate email. UI analyzes the domain, matches it against known tenant domains or calls the detection API, and auto-populates the verified Organization Code.
2. Credential Verification Auth Engine Evaluates password hash against tenant records. Verifies account status is active and not locked due to prior failed attempts.
3. Token Generation Gateway Issues cryptographic HMAC-SHA512 JWT access token. User is routed to their role-specific dashboard.
Security Specifications
Confidentiality Policy: SuperAdmin credentials and internal infrastructure tokens are never transmitted to client viewports. All administrative accounts require individual multi-factor authentication (MFA).
Workflow 03 โ€ข Core HR

Employee Master Directory & Lifecycle Management

Complete hire-to-retire records, organizational hierarchy & digital document vaults

Manages the complete employment lifecycle: digital offer letters, automatic sequential employee code generation (e.g. TCS-001), digital document vault storage (Aadhaar, PAN, Bank Details), probation tracking, confirmation reviews, and departmental organizational chart mapping.

Lifecycle State Progression
Status Trigger Unlocked Capabilities
ONBOARDING Candidate offer accepted Access to document upload portal, bank account entry, emergency contact registration.
PROBATION First day of joining Biometric clock-in enabled, monthly payroll calculation active, probation leave balance.
CONFIRMED Probation review signed off Full privilege leave entitlement, annual appraisal eligibility, notice period rules.
EXITED F&F settlement disbursed Account converted to read-only alumni portal (past payslips, Form 16, relieving letters).
Workflow 04 โ€ข Workforce Operations

Biometric Attendance, Geofencing & Shift Rosters

Hardware IoT synchronization and GPS perimeter validation

Dual-channel presence capture reconciles physical biometric terminals (ZKTeco, Essl) with mobile GPS clock-ins. Geofencing algorithms calculate Euclidean distance between the employee's coordinate and the company office center, validating punches within 50m to 500m perimeters.

Shift Rules & Regularization
Grace Period Tolerance Default 15-minute grace period accommodates transit delays before logging late-in penalties.
Shift Roster Mapping Supports Morning, General, Night, and rotational shifts with automated night shift allowance calculations.
Attendance Regularization Employee submits justification for off-site client meetings; reporting manager approves with full audit logging.
Continuous Daily Status Instant classification into Present, Half-Day, Absent, or On-Duty reflected immediately in payroll.
Workflow 05 โ€ข Compensation & Tax

Continuous Calculation Engine (CCE) & Statutory Indian Payroll

Real-time gross-to-net computation with EPF, ESI, PT, and Section 115BAC TDS

The Priyex Continuous Calculation Engine (CCE) calculates earnings, statutory deductions, and income taxes continuously with every shift punch rather than in end-of-month batch runs. It guarantees 100% compliance with Indian labor and tax statutes.

Statutory Formula Engine
Statutory Component Employee Share Employer Share Statutory Ceiling / Rules
EPF (Provident Fund) 12% of Basic 12% (3.67% EPF + 8.33% EPS) Wage ceiling โ‚น15,000/month for statutory minimum.
ESIC (State Insurance) 0.75% of Gross 3.25% of Gross Applicable when gross wage โ‰ค โ‚น21,000/month.
Professional Tax (PT) State Slab (e.g. โ‚น200) Nil State-specific slabs (e.g. Maharashtra โ‚น2,500/year, Karnataka โ‚น200/mo).
Income Tax TDS Per Slab Calculation Nil Dual Engine: Section 115BAC (New Regime) vs Old Regime (80C/80D/HRA).
Key Payroll Outputs
โ€ข Automated Electronic Challan cum Return (ECR) for EPFO portal upload โ€ข Bank NEFT/RTGS batch file formatting for 1-click corporate salary disbursement โ€ข Digitally signed PDF payslips delivered directly to employee mobile & web portals โ€ข Annual Form 16 Part A & Part B generation for income tax return filing
Workflow 06 โ€ข Time-Off

Leave Policies, Approvals & Carry-Forward Engine

Customizable accruals, sandwich weekend rules, and multi-tier approval routing

Supports Casual Leave (CL), Sick Leave (SL), Privilege / Earned Leave (PL/EL), Maternity Leave (26 weeks per Maternity Benefit Act), and Compensatory Offs. Features flexible monthly or annual grants, carry-forward rules, and encashment at year-end.

Architectural Pillars
1. Configurable Quota Engine Dynamic quota assignment by department, employment tenure, and location with sandwich weekend rules.
2. Multi-Tier Escalation Routing Multi-level approval chains (Reporting Manager → Department Head → HR Ops) with auto-delegation for absent managers.
3. Real-Time Balance Validation Instant verification against accrued balances prevents negative quotas and flags department blackout dates.
4. Year-End Carry-Forward & Encashment Automated annual cron carries forward eligible days (e.g. up to 15 days PL) and calculates basic pay encashment.
Operational Execution Sequence
Phase Primary Actor Execution & System Action
1. Leave Application Employee Submits request with date range and leave type. Engine checks balance and verifies team coverage constraints.
2. Manager Approval Reporting Manager Manager evaluates request against team schedule and approves or rejects with mandatory justification.
3. Balance Adjustment Automated Engine Deducts approved days, updates attendance status to LEAVE, and locks the dates against duplicate clock-in attempts.
Core REST Endpoints
GET /api/v1/leaves/balances POST /api/v1/leaves/apply PUT /api/v1/leaves/{id}/approve PUT /api/v1/leaves/{id}/reject
Workflow 07 โ€ข Talent

Performance Appraisals, OKRs & 360ยฐ Review Engine

Objective Key Results, multi-rater feedback, and committee bell-curve normalization

Aligns corporate objectives with individual goals through measurable milestones. Facilitates employee self-ratings, cross-functional peer reviews, and manager scorecards normalized against standard bell-curve distributions (e.g., top 10%, solid 70%, bottom 10%).

Architectural Pillars
1. Cascading OKR Alignment Corporate annual key results cascade to functional departments and individual quantitative quarterly targets.
2. Multi-Rater 360ยฐ Assessment Aggregates anonymous feedback from cross-functional peers, direct subordinates, and reporting supervisors.
3. Bell-Curve Normalization Committee scoring console distributes ratings across standard deviations (10% Top, 70% Core, 20% Improvement).
4. Compensation Sync Approved performance multipliers automatically feed into annual merit increase and variable bonus calculations.
Operational Execution Sequence
Phase Primary Actor Execution & System Action
1. Goal Initialization Manager & Employee Agrees upon 3 to 5 key objectives with quantifiable metric targets and percentage weights at cycle start.
2. Evaluation Review Employee & Peers Submits self-assessment and milestone proof. Selected peer evaluators submit 360-degree competency ratings.
3. Calibration & Sign-Off HR Committee Reviews departmental distributions, calibrates rating variances, and issues final performance scores.
Core REST Endpoints
GET /api/v1/performance/my-goals POST /api/v1/performance/goals POST /api/v1/performance/appraisals/submit-review GET /api/v1/performance/normalization-curve
Workflow 08 โ€ข Offboarding

Separation, Resignation & Full & Final (F&F) Settlement

Digital clearance matrix, notice period calculation, and statutory gratuity engine

Governs employee departures with standardized cross-departmental clearances: IT hardware retrieval, Finance expense clearance, and Admin building access revocation. Automates statutory Gratuity calculation: (15 ร— Last Drawn Basic ร— Years of Service) รท 26.

Architectural Pillars
1. Notice Period Calculation Calculates contractual notice requirement, shortfalls, buyout costs, and proposed Last Working Day (LWD).
2. Cross-Departmental NOC Mandatory sign-offs from IT (Hardware/Accounts), Finance (Advances/Loans), and Facilities (ID/Keys).
3. Statutory Gratuity Formula Automated computation under the Payment of Gratuity Act 1972 for employees with ≥ 5 years of tenure.
4. Automated Relieving Packet Generates digitally signed Relieving Letters, Experience Certificates, and comprehensive F&F payout slips.
Operational Execution Sequence
Phase Primary Actor Execution & System Action
1. Resignation Initiation Employee Submits formal resignation via portal. System triggers notification to manager and initiates notice period countdown.
2. Clearance (NOC) Matrix IT, Finance, Admin Each department verifies asset recovery and financial dues. System blocks final payment until 100% sign-off.
3. Settlement Disbursal Payroll Finance Calculates unpaid salary + leave encashment + gratuity - notice buyout. Releases funds and issues relieving certificates.
Core REST Endpoints
POST /api/v1/separation/resign GET /api/v1/separation/clearance-status/{employeeId} POST /api/v1/separation/calculate-fnf/{employeeId} GET /api/v1/separation/relieving-letter/{employeeId}
Workflow 09 โ€ข Security & Compliance

Role-Based Access Control (RBAC) & Enterprise Governance

Principle-of-least-privilege matrix, immutable audit trails, and SOC 2 alignment

Five discrete authorization tiers enforce least-privilege security across the platform:

Role Identifier Operational Scope Primary Authorizations
SUPER_ADMIN Platform Infrastructure Tenant provisioning, platform performance monitoring, global system health. No tenant confidential business inspection.
ADMIN Tenant Executive Organization settings, company-wide policy definitions, department setup, audit trail review.
HR_ADMIN People Operations Employee onboarding, leave approval escalations, payroll processing, statutory remittances.
MANAGER Team Supervision Direct report attendance approvals, leave request sign-offs, shift roster scheduling, performance reviews.
EMPLOYEE Self-Service (ESS) Personal profile updates, biometric punch logs, payslip downloads, leave applications, tax declarations.
Immutable Audit Logging: Every state alteration (salary revisions, profile updates, manual punches) generates an immutable audit record logging actor ID, source IP address, UTC timestamp, and before/after values for SOC 2 Type II compliance.