EAAutoEscalateApprovalToFallBackEmployee
Overview
Automatically escalates overdue approval cases to the fallback employee defined in the approval definition. Ensures approvals don't get stuck with unavailable employees.
When This Action Runs
- Trigger: Scheduled task execution
- Target: Approval cases exceeding auto-escalation timeout
- Purpose: Prevent approval bottlenecks with unavailable employees
- Timing: Runs on system schedule to check for overdue approvals
How It Works
- Finds overdue approvals where
nearestAutoEscalateDatehas passed and state is "InProgress" - Validates escalation candidates haven't already been escalated
- Checks timeout configuration in approval definition
- Escalates to fallback employee specified in approval definition
Database Tables Affected
ApprovalCase
- nearestAutoEscalateDate - When approval should be auto-escalated
- state - Must be "InProgress" for escalation (values: Approved, Rejected, Returned, Revoked, InProgress)
ApprovalDefinition
- fallBack - Employee to escalate to when timeout occurs
- autoEscalateAfter.value/uom - Time period before escalation
ApprovalCaseStepCandidate
- escalated - Tracks if candidate already escalated
- requestedOn - When approval request was made
Configuration Requirements
Approval Definition Setup
- fallBack employee must be specified
- autoEscalateAfter must have valid time period (value > 0 and uom)
Approval Case Requirements
- Must be in "InProgress" state
- Must have
nearestAutoEscalateDateset and exceeded - Must have active candidates not yet escalated
SQL Query Example
sql
SELECT ac.id, ac.nearestAutoEscalateDate, ac.state,
ad.code, fb.name1 AS FallbackEmployee
FROM ApprovalCase ac
INNER JOIN ApprovalDefinition ad ON ac.approvalDefinition_id = ad.id
LEFT JOIN Employee fb ON ad.fallBack_id = fb.id
WHERE ac.nearestAutoEscalateDate <= GETDATE()
AND ac.state = 'InProgress'
AND ad.fallBack_id IS NOT NULL
ORDER BY ac.nearestAutoEscalateDate;Related Actions
- EAAutoEscalateApprovalToSupervisor - Escalates to employee's supervisor instead of fallback
Module: core
Full Class Name: com.namasoft.infor.domainbase.util.actions.EAAutoEscalateApprovalToFallBackEmployee