From c81002da7d863ff3d505f0fe3358d9d557fea203 Mon Sep 17 00:00:00 2001 From: "s.hajizadeh" Date: Mon, 9 Nov 2026 18:00:46 +0330 Subject: [PATCH] updated the experts context --- docs/fanavaran/06-yara-integration.md | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/fanavaran/06-yara-integration.md b/docs/fanavaran/06-yara-integration.md index d4ea099..51edf4b 100644 --- a/docs/fanavaran/06-yara-integration.md +++ b/docs/fanavaran/06-yara-integration.md @@ -1,5 +1,5 @@ --- -last_updated: 2026-08-08 +last_updated: 2026-11-09 tags: [fanavaran, yara, integration] source: fanavaran-module-docs --- @@ -51,6 +51,31 @@ source: fanavaran-module-docs | Store | `claimId`, `claimNo`, `fanavaranSync.baseClaim.*`, history | | Consumers | Damage/expertise soft-ensure; UI claim detail | +#### Staff source for ClaimExpertId across request flows + +The flows in `docs/Yara724 flows.pdf` share the same base-claim resolver. +Base claims use `ThirdPartyClaimExpertId` / `CarBodyClaimExpertId`; expertise +uses `ThirdPartyExpertiseClaim` / `CarBodyExpertiseClaim` from staff profiles. + +| Local flow | Base-claim staff source | Expertise staff source | +|------------|------------------------|------------------------| +| V1/V2 user, including expert-panel review | Blame expert when present; otherwise claim damage-review actor or persistent reviewer assignment | Claim damage-review actor | +| V2 expert-initiated / V3 | Initiating field expert, then blame expert; claim damage reviewer is a fallback | Claim damage-review actor | +| V4 / V5 | Initiating FileMaker | Assigned FileReviewer | + +Outside V4/V5, base resolution checks blame initiator, blame assigned expert, +blame deciding expert, claim initiator, claim reply actor, then +`workflow.assignedForReviewBy.actorId`, in that order. Reply actor selection +matches expertise: the active submitted reply, then final/initial reply actor. +Temporary workflow locks are not reviewer assignments. + +An unassigned user-created claim can still have no expert early in its lifecycle: +preview returns a missing-expert warning, and submit requires a resolvable code. +Tenant defaults and unrelated staff profiles do not supply expert ids. +For example, a claim review actor with `ThirdPartyClaimExpertId="5507"` and +`ThirdPartyExpertiseClaim="5510"` supplies base `ClaimExpertId=5507` and +expertise `ClaimExpertId=5510`. + ### C. Damage case | | |