Skip to content

Commit

Permalink
PYIC-7832: Add back original states + fail routing and context
Browse files Browse the repository at this point in the history
Keep original states for now so it does not break any exisiting journeys, will be removed in follow up PR
We need to version of the new route, one with the context dropout
  • Loading branch information
AmritSidhu committed Jan 15, 2025
1 parent 445bccd commit 30a281e
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ states:
response:
type: page
pageId: photo-id-security-questions-find-another-way
context: dropout
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
Expand All @@ -306,6 +307,44 @@ states:
targetJourney: TECHNICAL_ERROR
targetState: ERROR

PYI_CRI_ESCAPE:
response:
type: page
pageId: pyi-cri-escape
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
f2f:
targetJourney: F2F_HAND_OFF
targetState: START

PYI_CRI_ESCAPE_NO_F2F:
response:
type: page
pageId: pyi-cri-escape-no-f2f
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
end:
targetJourney: INELIGIBLE
targetState: INELIGIBLE_SKIP_MESSAGE

# Common pages
KBV_PHOTO_ID:
nestedJourney: KBVS
Expand All @@ -321,7 +360,7 @@ states:
processCandidateIdentity:
targetState: PROCESS_NEW_IDENTITY
enhanced-verification:
targetState: PYI_KBV_DROPOUT_PHOTO_ID
targetState: MITIGATION_KBV_FAIL_PHOTO_ID
auditEvents:
- IPV_MITIGATION_START
auditContext:
Expand Down Expand Up @@ -450,6 +489,10 @@ states:
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
checkIfDisabled:
f2f:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
Expand Down Expand Up @@ -500,6 +543,10 @@ states:
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
checkIfDisabled:
f2f:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
Expand Down Expand Up @@ -617,6 +664,24 @@ states:
targetState: INELIGIBLE

# Mitigation journey (02)
MITIGATION_02_OPTIONS:
response:
type: page
pageId: pyi-suggest-other-options-no-f2f
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
end:
targetJourney: INELIGIBLE
targetState: INELIGIBLE

STRATEGIC_APP_TRIAGE_PYI_ESCAPE:
nestedJourney: STRATEGIC_APP_TRIAGE
Expand Down Expand Up @@ -683,6 +748,48 @@ states:
processCandidateIdentity:
targetState: PROCESS_INCOMPLETE_IDENTITY

MITIGATION_02_OPTIONS_WITH_F2F:
response:
type: page
pageId: pyi-suggest-other-options
events:
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR

MITIGATION_KBV_FAIL_PHOTO_ID:
response:
type: page
pageId: photo-id-security-questions-find-another-way
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
checkIfDisabled:
f2f:
targetJourney: TECHNICAL_ERROR
targetState: ERROR

PYI_POST_OFFICE:
response:
type: page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ states:
response:
type: page
pageId: photo-id-security-questions-find-another-way
context: dropout
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
Expand All @@ -339,6 +340,44 @@ states:
targetJourney: TECHNICAL_ERROR
targetState: ERROR

PYI_CRI_ESCAPE:
response:
type: page
pageId: pyi-cri-escape
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
f2f:
targetJourney: F2F_HAND_OFF
targetState: START

PYI_CRI_ESCAPE_NO_F2F:
response:
type: page
pageId: pyi-cri-escape-no-f2f
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
end:
targetJourney: INELIGIBLE
targetState: INELIGIBLE_SKIP_MESSAGE

# Common pages
KBV_PHOTO_ID:
nestedJourney: KBVS
Expand All @@ -354,7 +393,7 @@ states:
processCandidateIdentity:
targetState: PROCESS_NEW_IDENTITY
enhanced-verification:
targetState: PYI_KBV_DROPOUT_PHOTO_ID
targetState: MITIGATION_KBV_FAIL_PHOTO_ID
auditEvents:
- IPV_MITIGATION_START
auditContext:
Expand Down Expand Up @@ -497,6 +536,10 @@ states:
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
checkIfDisabled:
f2f:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
Expand Down Expand Up @@ -560,6 +603,10 @@ states:
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
checkIfDisabled:
f2f:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
Expand Down Expand Up @@ -677,6 +724,24 @@ states:
targetState: INELIGIBLE

# Mitigation journey (02)
MITIGATION_02_OPTIONS:
response:
type: page
pageId: pyi-suggest-other-options-no-f2f
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
end:
targetJourney: INELIGIBLE
targetState: INELIGIBLE

STRATEGIC_APP_TRIAGE_PYI_ESCAPE:
nestedJourney: STRATEGIC_APP_TRIAGE
Expand Down Expand Up @@ -743,6 +808,48 @@ states:
processCandidateIdentity:
targetState: PROCESS_INCOMPLETE_IDENTITY

MITIGATION_02_OPTIONS_WITH_F2F:
response:
type: page
pageId: pyi-suggest-other-options
events:
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR

MITIGATION_KBV_FAIL_PHOTO_ID:
response:
type: page
pageId: photo-id-security-questions-find-another-way
events:
appTriage:
targetState: APP_DOC_CHECK_PYI_ESCAPE
targetEntryEvent: next
checkFeatureFlag:
strategicAppEnabled:
targetState: STRATEGIC_APP_TRIAGE_PYI_ESCAPE
checkIfDisabled:
dcmaw:
targetJourney: TECHNICAL_ERROR
targetState: ERROR
f2f:
targetJourney: F2F_HAND_OFF
targetState: START
checkIfDisabled:
f2f:
targetJourney: TECHNICAL_ERROR
targetState: ERROR

PYI_POST_OFFICE:
response:
type: page
Expand Down

0 comments on commit 30a281e

Please sign in to comment.