Repository navigation
additions - #41
additions#41
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (52)
WalkthroughThis pull request introduces a comprehensive workflow engine for assignment and escalation management, alongside supporting infrastructure including extensive documentation, development scripts, and updated utilities for file storage and communications. Changes
Sequence Diagram(s)sequenceDiagram
participant App as Application
participant WF as Workflow Engine
participant AR as AssigneeResolver
participant ASN as Assignment Service
participant EM as Escalation Matrix
participant DB as Database
App->>WF: takeAction(applicationType, applicationId, action)
activate WF
WF->>DB: Load application record
WF->>ASN: Get current assignment
activate ASN
ASN->>DB: Query assignment
ASN-->>WF: Return current assignee
deactivate ASN
WF->>EM: resolve(applicationType, currentStage, action)
activate EM
EM->>DB: Query escalation matrix
EM-->>WF: Return next state & assignee spec
deactivate EM
alt Context-based Assignee
WF->>AR: resolve({type: CONTEXT})
activate AR
AR->>AR: Match context against conditions
AR-->>WF: Return assignee
deactivate AR
else Resolver-based Assignee
WF->>AR: resolve({type: LOOKUP, resolverKey})
activate AR
AR->>DB: Query resolver model
AR-->>WF: Return matched assignee
deactivate AR
end
WF->>ASN: Close current, create new assignment
activate ASN
ASN->>DB: Update application record
ASN->>DB: Create workflow action log
ASN-->>WF: Return assignment result
deactivate ASN
WF-->>App: Return {success, assignmentId}
deactivate WF
sequenceDiagram
participant Sys as System
participant AE as AutoEscalationService
participant AM as Assignment Service
participant WF as Workflow
participant DB as Database
Sys->>AE: run({applicationType, action})
activate AE
AE->>DB: Load active assignments
AE->>AE: Filter by auto_trigger & elapsed time
AE->>AE: Build candidate list
loop For each candidate
AE->>AE: processOne(candidate)
activate AE
AE->>DB: Begin transaction
AE->>DB: Verify current assignment
AE->>WF: takeAction(auto escalation)
activate WF
WF->>AM: Update assignment
WF->>DB: Log workflow action
WF-->>AE: Success/Error
deactivate WF
AE->>DB: Commit/Rollback transaction
deactivate AE
end
AE-->>Sys: Return {scanned, escalated, skipped, errors}
deactivate AE
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Note 🎁 Summarized by CodeRabbit FreeYour organization has reached its limit of developer seats under the Pro Plan. For new users, CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please add seats to your subscription by visiting https://app.coderabbit.ai/login.If you believe this is a mistake and have available seats, please assign one to the pull request author through the subscription management page using the link above. Comment |
|
❌ This PR has 67 commits, which exceeds the limit of 3. Please squash your commits before merging. |

Summary by CodeRabbit
New Features
Configuration
Chores