Created
October 12, 2021 13:51
-
-
Save inabhi9/280ed9f2d11fce48f1ccf3535d647724 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) | |
const stateMachine = Machine({ | |
"id": "loan", | |
"key": "loan", | |
"context": { | |
"calculation": true, | |
"reSource": true, | |
"addProducts": true, | |
"deleteProducts": true, | |
"prevState": null, | |
"loanId": null | |
}, | |
"type": "compound", | |
"initial": "adjustment", | |
"history": false, | |
"states": { | |
"calculation": { | |
"id": "loan.calculation", | |
"key": "calculation", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.calculation.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"CALCULATION.finished": [{ | |
"target": ["#loan.calculation.success"], | |
"event": "CALCULATION.finished", | |
"actions": [], | |
"source": "#loan.calculation.pending", | |
"internal": false, | |
"eventType": "CALCULATION.finished" | |
}], | |
"CALCULATION.errored": [{ | |
"target": ["#loan.calculation.error"], | |
"event": "CALCULATION.errored", | |
"actions": [], | |
"source": "#loan.calculation.pending", | |
"internal": false, | |
"eventType": "CALCULATION.errored" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.calculation.success"], | |
"event": "CALCULATION.finished", | |
"actions": [], | |
"source": "#loan.calculation.pending", | |
"internal": false, | |
"eventType": "CALCULATION.finished" | |
}, { | |
"target": ["#loan.calculation.error"], | |
"event": "CALCULATION.errored", | |
"actions": [], | |
"source": "#loan.calculation.pending", | |
"internal": false, | |
"eventType": "CALCULATION.errored" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 2, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.calculation.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 3, | |
"invoke": [] | |
}, | |
"error": { | |
"id": "loan.calculation.error", | |
"key": "error", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 4, | |
"invoke": [] | |
} | |
}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 1, | |
"invoke": [] | |
}, | |
"resourcing": { | |
"id": "loan.resourcing", | |
"key": "resourcing", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.resourcing.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"RESOURCING.finished": [{ | |
"target": ["#loan.resourcing.success"], | |
"event": "RESOURCING.finished", | |
"actions": [], | |
"source": "#loan.resourcing.pending", | |
"internal": false, | |
"eventType": "RESOURCING.finished" | |
}], | |
"RESOURCING.errored": [{ | |
"target": ["#loan.resourcing.error"], | |
"event": "RESOURCING.errored", | |
"actions": [], | |
"source": "#loan.resourcing.pending", | |
"internal": false, | |
"eventType": "RESOURCING.errored" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.resourcing.success"], | |
"event": "RESOURCING.finished", | |
"actions": [], | |
"source": "#loan.resourcing.pending", | |
"internal": false, | |
"eventType": "RESOURCING.finished" | |
}, { | |
"target": ["#loan.resourcing.error"], | |
"event": "RESOURCING.errored", | |
"actions": [], | |
"source": "#loan.resourcing.pending", | |
"internal": false, | |
"eventType": "RESOURCING.errored" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 6, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.resourcing.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 7, | |
"invoke": [] | |
}, | |
"error": { | |
"id": "loan.resourcing.error", | |
"key": "error", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 8, | |
"invoke": [] | |
} | |
}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 5, | |
"invoke": [] | |
}, | |
"risk_adjustment": { | |
"id": "loan.risk_adjustment", | |
"key": "risk_adjustment", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.risk_adjustment.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"TERMINATE_RISK_ADJUSTMENT": [{ | |
"target": ["#loan.risk_adjustment.success"], | |
"event": "TERMINATE_RISK_ADJUSTMENT", | |
"actions": [], | |
"source": "#loan.risk_adjustment.pending", | |
"internal": false, | |
"eventType": "TERMINATE_RISK_ADJUSTMENT" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.risk_adjustment.success"], | |
"event": "TERMINATE_RISK_ADJUSTMENT", | |
"actions": [], | |
"source": "#loan.risk_adjustment.pending", | |
"internal": false, | |
"eventType": "TERMINATE_RISK_ADJUSTMENT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 10, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.risk_adjustment.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 11, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"CALCULATE": [{ | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.risk_adjustment", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}], | |
"RESOURCE": [{ | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.risk_adjustment", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}], | |
"INITIATE_RISK_ADJUSTMENT": [{ | |
"target": ["#loan.risk_adjustment"], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"actions": [], | |
"source": "#loan.risk_adjustment", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.risk_adjustment", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}, { | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.risk_adjustment", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}, { | |
"target": ["#loan.risk_adjustment"], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"actions": [], | |
"source": "#loan.risk_adjustment", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 9, | |
"invoke": [] | |
}, | |
"adjustment": { | |
"id": "loan.adjustment", | |
"key": "adjustment", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.adjustment.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.adjustment_park_loan": [{ | |
"target": ["#loan.adjustment.on_hold"], | |
"event": "FULFILL.adjustment_park_loan", | |
"actions": [], | |
"source": "#loan.adjustment.pending", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_park_loan" | |
}], | |
"FULFILL.adjustment_request_offer": [{ | |
"target": ["#loan.adjustment.success"], | |
"event": "FULFILL.adjustment_request_offer", | |
"actions": [], | |
"source": "#loan.adjustment.pending", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_request_offer" | |
}], | |
"FULFILL.adjustment_resume": [{ | |
"target": ["#loan.adjustment.pending"], | |
"event": "FULFILL.adjustment_resume", | |
"actions": [], | |
"source": "#loan.adjustment.pending", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_resume" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.adjustment.on_hold"], | |
"event": "FULFILL.adjustment_park_loan", | |
"actions": [], | |
"source": "#loan.adjustment.pending", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_park_loan" | |
}, { | |
"target": ["#loan.adjustment.success"], | |
"event": "FULFILL.adjustment_request_offer", | |
"actions": [], | |
"source": "#loan.adjustment.pending", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_request_offer" | |
}, { | |
"target": ["#loan.adjustment.pending"], | |
"event": "FULFILL.adjustment_resume", | |
"actions": [], | |
"source": "#loan.adjustment.pending", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_resume" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 13, | |
"invoke": [] | |
}, | |
"on_hold": { | |
"id": "loan.adjustment.on_hold", | |
"key": "on_hold", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.adjustment_resume": [{ | |
"target": ["#loan.adjustment.pending"], | |
"event": "FULFILL.adjustment_resume", | |
"actions": [], | |
"source": "#loan.adjustment.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_resume" | |
}], | |
"FULFILL.adjustment_park_loan": [{ | |
"target": ["#loan.adjustment.on_hold"], | |
"event": "FULFILL.adjustment_park_loan", | |
"actions": [], | |
"source": "#loan.adjustment.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_park_loan" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.adjustment.pending"], | |
"event": "FULFILL.adjustment_resume", | |
"actions": [], | |
"source": "#loan.adjustment.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_resume" | |
}, { | |
"target": ["#loan.adjustment.on_hold"], | |
"event": "FULFILL.adjustment_park_loan", | |
"actions": [], | |
"source": "#loan.adjustment.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_park_loan" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 14, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.adjustment.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.adjustment_request_offer": [{ | |
"target": ["#loan.adjustment.success"], | |
"event": "FULFILL.adjustment_request_offer", | |
"actions": [], | |
"source": "#loan.adjustment.success", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_request_offer" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.adjustment.success"], | |
"event": "FULFILL.adjustment_request_offer", | |
"actions": [], | |
"source": "#loan.adjustment.success", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_request_offer" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 15, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"done.state.loan.adjustment": [{ | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "done.state.loan.adjustment", | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "done.state.loan.adjustment" | |
}], | |
"CALCULATE": [{ | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}], | |
"RESOURCE": [{ | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}], | |
"ADJUST_REQUEST": [{ | |
"target": ["#loan.adjustment"], | |
"event": "ADJUST_REQUEST", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}], | |
"REACTIVATE": [{ | |
"target": ["#loan.adjustment"], | |
"event": "REACTIVATE", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "REACTIVATE" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "done.state.loan.adjustment", | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "done.state.loan.adjustment" | |
}, { | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}, { | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}, { | |
"target": ["#loan.adjustment"], | |
"event": "ADJUST_REQUEST", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}, { | |
"target": ["#loan.adjustment"], | |
"event": "REACTIVATE", | |
"actions": [], | |
"source": "#loan.adjustment", | |
"internal": false, | |
"eventType": "REACTIVATE" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 12, | |
"invoke": [] | |
}, | |
"underwriting": { | |
"id": "loan.underwriting", | |
"key": "underwriting", | |
"type": "compound", | |
"initial": "underwriting", | |
"history": false, | |
"states": { | |
"underwriting": { | |
"id": "loan.underwriting.underwriting", | |
"key": "underwriting", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.underwriting_sales_infoirmation_missing": [{ | |
"target": ["#loan.underwriting.sales_clarification"], | |
"event": "FULFILL.underwriting_sales_infoirmation_missing", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_infoirmation_missing" | |
}], | |
"FULFILL.underwriting_park_loan": [{ | |
"target": ["#loan.underwriting.on_hold"], | |
"event": "FULFILL.underwriting_park_loan", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_park_loan" | |
}], | |
"FULFILL.underwriting_done_principal_high": [{ | |
"target": ["#loan.underwriting.senior_underwriting"], | |
"event": "FULFILL.underwriting_done_principal_high", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_high" | |
}], | |
"FULFILL.underwriting_done_principal_low": [{ | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_done_principal_low", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_low" | |
}], | |
"FULFILL.underwriting_sales_information_clarified": [{ | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_sales_information_clarified", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_information_clarified" | |
}], | |
"FULFILL.underwriting_resume": [{ | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_resume", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_resume" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.underwriting.sales_clarification"], | |
"event": "FULFILL.underwriting_sales_infoirmation_missing", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_infoirmation_missing" | |
}, { | |
"target": ["#loan.underwriting.on_hold"], | |
"event": "FULFILL.underwriting_park_loan", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_park_loan" | |
}, { | |
"target": ["#loan.underwriting.senior_underwriting"], | |
"event": "FULFILL.underwriting_done_principal_high", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_high" | |
}, { | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_done_principal_low", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_low" | |
}, { | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_sales_information_clarified", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_information_clarified" | |
}, { | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_resume", | |
"actions": [], | |
"source": "#loan.underwriting.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_resume" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 17, | |
"invoke": [] | |
}, | |
"sales_clarification": { | |
"id": "loan.underwriting.sales_clarification", | |
"key": "sales_clarification", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.underwriting_sales_information_clarified": [{ | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_sales_information_clarified", | |
"actions": [], | |
"source": "#loan.underwriting.sales_clarification", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_information_clarified" | |
}], | |
"FULFILL.underwriting_sales_infoirmation_missing": [{ | |
"target": ["#loan.underwriting.sales_clarification"], | |
"event": "FULFILL.underwriting_sales_infoirmation_missing", | |
"actions": [], | |
"source": "#loan.underwriting.sales_clarification", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_infoirmation_missing" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_sales_information_clarified", | |
"actions": [], | |
"source": "#loan.underwriting.sales_clarification", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_information_clarified" | |
}, { | |
"target": ["#loan.underwriting.sales_clarification"], | |
"event": "FULFILL.underwriting_sales_infoirmation_missing", | |
"actions": [], | |
"source": "#loan.underwriting.sales_clarification", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_infoirmation_missing" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 18, | |
"invoke": [] | |
}, | |
"on_hold": { | |
"id": "loan.underwriting.on_hold", | |
"key": "on_hold", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.underwriting_resume": [{ | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_resume", | |
"actions": [], | |
"source": "#loan.underwriting.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_resume" | |
}], | |
"FULFILL.underwriting_park_loan": [{ | |
"target": ["#loan.underwriting.on_hold"], | |
"event": "FULFILL.underwriting_park_loan", | |
"actions": [], | |
"source": "#loan.underwriting.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_park_loan" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.underwriting.underwriting"], | |
"event": "FULFILL.underwriting_resume", | |
"actions": [], | |
"source": "#loan.underwriting.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_resume" | |
}, { | |
"target": ["#loan.underwriting.on_hold"], | |
"event": "FULFILL.underwriting_park_loan", | |
"actions": [], | |
"source": "#loan.underwriting.on_hold", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_park_loan" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 19, | |
"invoke": [] | |
}, | |
"senior_underwriting": { | |
"id": "loan.underwriting.senior_underwriting", | |
"key": "senior_underwriting", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.underwriting_sales_infoirmation_missing": [{ | |
"target": ["#loan.underwriting.sales_clarification"], | |
"event": "FULFILL.underwriting_sales_infoirmation_missing", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_infoirmation_missing" | |
}], | |
"FULFILL.underwriting_park_loan": [{ | |
"target": ["#loan.underwriting.on_hold"], | |
"event": "FULFILL.underwriting_park_loan", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_park_loan" | |
}], | |
"FULFILL.underwriting_pre_approve": [{ | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_pre_approve", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_pre_approve" | |
}], | |
"FULFILL.underwriting_done_principal_high": [{ | |
"target": ["#loan.underwriting.senior_underwriting"], | |
"event": "FULFILL.underwriting_done_principal_high", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_high" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.underwriting.sales_clarification"], | |
"event": "FULFILL.underwriting_sales_infoirmation_missing", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_sales_infoirmation_missing" | |
}, { | |
"target": ["#loan.underwriting.on_hold"], | |
"event": "FULFILL.underwriting_park_loan", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_park_loan" | |
}, { | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_pre_approve", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_pre_approve" | |
}, { | |
"target": ["#loan.underwriting.senior_underwriting"], | |
"event": "FULFILL.underwriting_done_principal_high", | |
"actions": [], | |
"source": "#loan.underwriting.senior_underwriting", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_high" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 20, | |
"invoke": [] | |
}, | |
"pre_approved": { | |
"id": "loan.underwriting.pre_approved", | |
"key": "pre_approved", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.underwriting_done_principal_low": [{ | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_done_principal_low", | |
"actions": [], | |
"source": "#loan.underwriting.pre_approved", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_low" | |
}], | |
"FULFILL.underwriting_pre_approve": [{ | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_pre_approve", | |
"actions": [], | |
"source": "#loan.underwriting.pre_approved", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_pre_approve" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_done_principal_low", | |
"actions": [], | |
"source": "#loan.underwriting.pre_approved", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_low" | |
}, { | |
"target": ["#loan.underwriting.pre_approved"], | |
"event": "FULFILL.underwriting_pre_approve", | |
"actions": [], | |
"source": "#loan.underwriting.pre_approved", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_pre_approve" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 21, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"done.state.loan.underwriting": [{ | |
"target": ["#loan.offer_preparation"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "done.state.loan.underwriting", | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "done.state.loan.underwriting" | |
}], | |
"ADJUST_REQUEST": [{ | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}], | |
"ASK_FOR_OFFER_REFINEMENT": [{ | |
"target": ["#loan.underwriting"], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}], | |
"FULFILL.adjustment_request_offer": [{ | |
"target": ["#loan.underwriting"], | |
"event": "FULFILL.adjustment_request_offer", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_request_offer" | |
}], | |
"CALCULATE": [{ | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}], | |
"RESOURCE": [{ | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.offer_preparation"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "done.state.loan.underwriting", | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "done.state.loan.underwriting" | |
}, { | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}, { | |
"target": ["#loan.underwriting"], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}, { | |
"target": ["#loan.underwriting"], | |
"event": "FULFILL.adjustment_request_offer", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "FULFILL.adjustment_request_offer" | |
}, { | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}, { | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.underwriting", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 16, | |
"invoke": [] | |
}, | |
"offer_preparation": { | |
"id": "loan.offer_preparation", | |
"key": "offer_preparation", | |
"type": "parallel", | |
"history": false, | |
"states": { | |
"offer_made": { | |
"id": "loan.offer_preparation.offer_made", | |
"key": "offer_made", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.offer_preparation.offer_made.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.offer_made": [{ | |
"target": ["#loan.offer_preparation.offer_made.success"], | |
"event": "FULFILL.offer_made", | |
"actions": [], | |
"source": "#loan.offer_preparation.offer_made.pending", | |
"internal": false, | |
"eventType": "FULFILL.offer_made" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.offer_preparation.offer_made.success"], | |
"event": "FULFILL.offer_made", | |
"actions": [], | |
"source": "#loan.offer_preparation.offer_made.pending", | |
"internal": false, | |
"eventType": "FULFILL.offer_made" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 24, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.offer_preparation.offer_made.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.offer_made": [{ | |
"target": ["#loan.offer_preparation.offer_made.success"], | |
"event": "FULFILL.offer_made", | |
"actions": [], | |
"source": "#loan.offer_preparation.offer_made.success", | |
"internal": false, | |
"eventType": "FULFILL.offer_made" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.offer_preparation.offer_made.success"], | |
"event": "FULFILL.offer_made", | |
"actions": [], | |
"source": "#loan.offer_preparation.offer_made.success", | |
"internal": false, | |
"eventType": "FULFILL.offer_made" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 25, | |
"invoke": [] | |
} | |
}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 23, | |
"invoke": [] | |
}, | |
"approved": { | |
"id": "loan.offer_preparation.approved", | |
"key": "approved", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.offer_preparation.approved.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"APPROVE_SALES_PROOF.approved": [{ | |
"target": ["#loan.offer_preparation.approved.sales_proof_approved"], | |
"event": "APPROVE_SALES_PROOF.approved", | |
"actions": [], | |
"source": "#loan.offer_preparation.approved.pending", | |
"internal": false, | |
"eventType": "APPROVE_SALES_PROOF.approved" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.offer_preparation.approved.sales_proof_approved"], | |
"event": "APPROVE_SALES_PROOF.approved", | |
"actions": [], | |
"source": "#loan.offer_preparation.approved.pending", | |
"internal": false, | |
"eventType": "APPROVE_SALES_PROOF.approved" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 27, | |
"invoke": [] | |
}, | |
"sales_proof_approved": { | |
"id": "loan.offer_preparation.approved.sales_proof_approved", | |
"key": "sales_proof_approved", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"APPROVE_LOAN.approved": [{ | |
"target": ["#loan.offer_preparation.approved.success"], | |
"actions": [{ | |
"type": "closeEntityActions" | |
}], | |
"event": "APPROVE_LOAN.approved", | |
"source": "#loan.offer_preparation.approved.sales_proof_approved", | |
"internal": false, | |
"eventType": "APPROVE_LOAN.approved" | |
}], | |
"APPROVE_SALES_PROOF.approved": [{ | |
"target": ["#loan.offer_preparation.approved.sales_proof_approved"], | |
"event": "APPROVE_SALES_PROOF.approved", | |
"actions": [], | |
"source": "#loan.offer_preparation.approved.sales_proof_approved", | |
"internal": false, | |
"eventType": "APPROVE_SALES_PROOF.approved" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.offer_preparation.approved.success"], | |
"actions": [{ | |
"type": "closeEntityActions" | |
}], | |
"event": "APPROVE_LOAN.approved", | |
"source": "#loan.offer_preparation.approved.sales_proof_approved", | |
"internal": false, | |
"eventType": "APPROVE_LOAN.approved" | |
}, { | |
"target": ["#loan.offer_preparation.approved.sales_proof_approved"], | |
"event": "APPROVE_SALES_PROOF.approved", | |
"actions": [], | |
"source": "#loan.offer_preparation.approved.sales_proof_approved", | |
"internal": false, | |
"eventType": "APPROVE_SALES_PROOF.approved" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 28, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.offer_preparation.approved.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"APPROVE_LOAN.approved": [{ | |
"target": ["#loan.offer_preparation.approved.success"], | |
"event": "APPROVE_LOAN.approved", | |
"actions": [], | |
"source": "#loan.offer_preparation.approved.success", | |
"internal": false, | |
"eventType": "APPROVE_LOAN.approved" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.offer_preparation.approved.success"], | |
"event": "APPROVE_LOAN.approved", | |
"actions": [], | |
"source": "#loan.offer_preparation.approved.success", | |
"internal": false, | |
"eventType": "APPROVE_LOAN.approved" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 29, | |
"invoke": [] | |
} | |
}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 26, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"done.state.loan.offer_preparation": [{ | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "done.state.loan.offer_preparation", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "done.state.loan.offer_preparation" | |
}], | |
"ASK_FOR_OFFER_REFINEMENT": [{ | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}], | |
"ADJUST_REQUEST": [{ | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}], | |
"INITIATE_RISK_ADJUSTMENT": [{ | |
"target": ["#loan.risk_adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}], | |
"FULFILL.underwriting_pre_approve": [{ | |
"target": ["#loan.offer_preparation"], | |
"event": "FULFILL.underwriting_pre_approve", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_pre_approve" | |
}], | |
"FULFILL.underwriting_done_principal_low": [{ | |
"target": ["#loan.offer_preparation"], | |
"event": "FULFILL.underwriting_done_principal_low", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_low" | |
}], | |
"CALCULATE": [{ | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}], | |
"RESOURCE": [{ | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "done.state.loan.offer_preparation", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "done.state.loan.offer_preparation" | |
}, { | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}, { | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}, { | |
"target": ["#loan.risk_adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}, { | |
"target": ["#loan.offer_preparation"], | |
"event": "FULFILL.underwriting_pre_approve", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_pre_approve" | |
}, { | |
"target": ["#loan.offer_preparation"], | |
"event": "FULFILL.underwriting_done_principal_low", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "FULFILL.underwriting_done_principal_low" | |
}, { | |
"target": ["#loan.calculation"], | |
"event": "CALCULATE", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "CALCULATE" | |
}, { | |
"target": ["#loan.resourcing"], | |
"event": "RESOURCE", | |
"actions": [], | |
"source": "#loan.offer_preparation", | |
"internal": false, | |
"eventType": "RESOURCE" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 22, | |
"invoke": [] | |
}, | |
"awaiting_customer_feedback": { | |
"id": "loan.awaiting_customer_feedback", | |
"key": "awaiting_customer_feedback", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"ACCEPT_OFFER": [{ | |
"target": ["#loan.payout_preparation"], | |
"event": "ACCEPT_OFFER", | |
"actions": [], | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "ACCEPT_OFFER" | |
}], | |
"ASK_FOR_OFFER_REFINEMENT": [{ | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}], | |
"ADJUST_REQUEST": [{ | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}], | |
"FULFILL.offer_made": [{ | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "FULFILL.offer_made", | |
"actions": [], | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "FULFILL.offer_made" | |
}], | |
"APPROVE_LOAN.approved": [{ | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "APPROVE_LOAN.approved", | |
"actions": [], | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "APPROVE_LOAN.approved" | |
}], | |
"INITIATE_RISK_ADJUSTMENT": [{ | |
"target": ["#loan.risk_adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation"], | |
"event": "ACCEPT_OFFER", | |
"actions": [], | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "ACCEPT_OFFER" | |
}, { | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}, { | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}, { | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "FULFILL.offer_made", | |
"actions": [], | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "FULFILL.offer_made" | |
}, { | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "APPROVE_LOAN.approved", | |
"actions": [], | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "APPROVE_LOAN.approved" | |
}, { | |
"target": ["#loan.risk_adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"source": "#loan.awaiting_customer_feedback", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 30, | |
"invoke": [] | |
}, | |
"payout_preparation": { | |
"id": "loan.payout_preparation", | |
"key": "payout_preparation", | |
"type": "parallel", | |
"history": false, | |
"states": { | |
"kyc_process_finished": { | |
"id": "loan.payout_preparation.kyc_process_finished", | |
"key": "kyc_process_finished", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.payout_preparation.kyc_process_finished.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.kyc_process_finished": [{ | |
"target": ["#loan.payout_preparation.kyc_process_finished.success"], | |
"event": "FULFILL.kyc_process_finished", | |
"actions": [], | |
"source": "#loan.payout_preparation.kyc_process_finished.pending", | |
"internal": false, | |
"eventType": "FULFILL.kyc_process_finished" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.kyc_process_finished.success"], | |
"event": "FULFILL.kyc_process_finished", | |
"actions": [], | |
"source": "#loan.payout_preparation.kyc_process_finished.pending", | |
"internal": false, | |
"eventType": "FULFILL.kyc_process_finished" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 33, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.payout_preparation.kyc_process_finished.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.kyc_process_finished": [{ | |
"target": ["#loan.payout_preparation.kyc_process_finished.success"], | |
"event": "FULFILL.kyc_process_finished", | |
"actions": [], | |
"source": "#loan.payout_preparation.kyc_process_finished.success", | |
"internal": false, | |
"eventType": "FULFILL.kyc_process_finished" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.kyc_process_finished.success"], | |
"event": "FULFILL.kyc_process_finished", | |
"actions": [], | |
"source": "#loan.payout_preparation.kyc_process_finished.success", | |
"internal": false, | |
"eventType": "FULFILL.kyc_process_finished" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 34, | |
"invoke": [] | |
} | |
}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 32, | |
"invoke": [] | |
}, | |
"contract_signing": { | |
"id": "loan.payout_preparation.contract_signing", | |
"key": "contract_signing", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.payout_preparation.contract_signing.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.contract_uploaded_merchant": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_uploaded_merchant"], | |
"event": "FULFILL.contract_uploaded_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.pending", | |
"internal": false, | |
"eventType": "FULFILL.contract_uploaded_merchant" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_uploaded_merchant"], | |
"event": "FULFILL.contract_uploaded_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.pending", | |
"internal": false, | |
"eventType": "FULFILL.contract_uploaded_merchant" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 36, | |
"invoke": [] | |
}, | |
"contract_uploaded_merchant": { | |
"id": "loan.payout_preparation.contract_signing.contract_uploaded_merchant", | |
"key": "contract_uploaded_merchant", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.contract_signing_merchant": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_merchant"], | |
"event": "FULFILL.contract_signing_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_uploaded_merchant", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_merchant" | |
}], | |
"FULFILL.contract_uploaded_merchant": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_uploaded_merchant"], | |
"event": "FULFILL.contract_uploaded_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_uploaded_merchant", | |
"internal": false, | |
"eventType": "FULFILL.contract_uploaded_merchant" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_merchant"], | |
"event": "FULFILL.contract_signing_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_uploaded_merchant", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_merchant" | |
}, { | |
"target": ["#loan.payout_preparation.contract_signing.contract_uploaded_merchant"], | |
"event": "FULFILL.contract_uploaded_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_uploaded_merchant", | |
"internal": false, | |
"eventType": "FULFILL.contract_uploaded_merchant" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 37, | |
"invoke": [] | |
}, | |
"contract_signed_merchant": { | |
"id": "loan.payout_preparation.contract_signing.contract_signed_merchant", | |
"key": "contract_signed_merchant", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.upload_contract_package": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_uploaded"], | |
"event": "FULFILL.upload_contract_package", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_merchant", | |
"internal": false, | |
"eventType": "FULFILL.upload_contract_package" | |
}], | |
"FULFILL.documents_missing": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_incomplete"], | |
"event": "FULFILL.documents_missing", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_merchant", | |
"internal": false, | |
"eventType": "FULFILL.documents_missing" | |
}], | |
"FULFILL.contract_signing_merchant": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_merchant"], | |
"event": "FULFILL.contract_signing_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_merchant", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_merchant" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_uploaded"], | |
"event": "FULFILL.upload_contract_package", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_merchant", | |
"internal": false, | |
"eventType": "FULFILL.upload_contract_package" | |
}, { | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_incomplete"], | |
"event": "FULFILL.documents_missing", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_merchant", | |
"internal": false, | |
"eventType": "FULFILL.documents_missing" | |
}, { | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_merchant"], | |
"event": "FULFILL.contract_signing_merchant", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_merchant", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_merchant" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 38, | |
"invoke": [] | |
}, | |
"contract_package_incomplete": { | |
"id": "loan.payout_preparation.contract_signing.contract_package_incomplete", | |
"key": "contract_package_incomplete", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.upload_contract_package": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_uploaded"], | |
"event": "FULFILL.upload_contract_package", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_incomplete", | |
"internal": false, | |
"eventType": "FULFILL.upload_contract_package" | |
}], | |
"FULFILL.documents_missing": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_incomplete"], | |
"event": "FULFILL.documents_missing", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_incomplete", | |
"internal": false, | |
"eventType": "FULFILL.documents_missing" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_uploaded"], | |
"event": "FULFILL.upload_contract_package", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_incomplete", | |
"internal": false, | |
"eventType": "FULFILL.upload_contract_package" | |
}, { | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_incomplete"], | |
"event": "FULFILL.documents_missing", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_incomplete", | |
"internal": false, | |
"eventType": "FULFILL.documents_missing" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 39, | |
"invoke": [] | |
}, | |
"contract_package_uploaded": { | |
"id": "loan.payout_preparation.contract_signing.contract_package_uploaded", | |
"key": "contract_package_uploaded", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.contract_signing_myos": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_myos"], | |
"event": "FULFILL.contract_signing_myos", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_uploaded", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_myos" | |
}], | |
"FULFILL.upload_contract_package": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_uploaded"], | |
"event": "FULFILL.upload_contract_package", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_uploaded", | |
"internal": false, | |
"eventType": "FULFILL.upload_contract_package" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_myos"], | |
"event": "FULFILL.contract_signing_myos", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_uploaded", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_myos" | |
}, { | |
"target": ["#loan.payout_preparation.contract_signing.contract_package_uploaded"], | |
"event": "FULFILL.upload_contract_package", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_package_uploaded", | |
"internal": false, | |
"eventType": "FULFILL.upload_contract_package" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 40, | |
"invoke": [] | |
}, | |
"contract_signed_myos": { | |
"id": "loan.payout_preparation.contract_signing.contract_signed_myos", | |
"key": "contract_signed_myos", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.contract_signing_bank": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_all_parties"], | |
"event": "FULFILL.contract_signing_bank", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_myos", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_bank" | |
}], | |
"FULFILL.contract_signing_myos": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_myos"], | |
"event": "FULFILL.contract_signing_myos", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_myos", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_myos" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_all_parties"], | |
"event": "FULFILL.contract_signing_bank", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_myos", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_bank" | |
}, { | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_myos"], | |
"event": "FULFILL.contract_signing_myos", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_myos", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_myos" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 41, | |
"invoke": [] | |
}, | |
"contract_signed_all_parties": { | |
"id": "loan.payout_preparation.contract_signing.contract_signed_all_parties", | |
"key": "contract_signed_all_parties", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.contract_signing_bank": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_all_parties"], | |
"event": "FULFILL.contract_signing_bank", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_all_parties", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_bank" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.contract_signing.contract_signed_all_parties"], | |
"event": "FULFILL.contract_signing_bank", | |
"actions": [], | |
"source": "#loan.payout_preparation.contract_signing.contract_signed_all_parties", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_bank" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 42, | |
"invoke": [] | |
} | |
}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 35, | |
"invoke": [] | |
}, | |
"collateral_documents_approved": { | |
"id": "loan.payout_preparation.collateral_documents_approved", | |
"key": "collateral_documents_approved", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.payout_preparation.collateral_documents_approved.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.collateral_documents_approved": [{ | |
"target": ["#loan.payout_preparation.collateral_documents_approved.success"], | |
"event": "FULFILL.collateral_documents_approved", | |
"actions": [], | |
"source": "#loan.payout_preparation.collateral_documents_approved.pending", | |
"internal": false, | |
"eventType": "FULFILL.collateral_documents_approved" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.collateral_documents_approved.success"], | |
"event": "FULFILL.collateral_documents_approved", | |
"actions": [], | |
"source": "#loan.payout_preparation.collateral_documents_approved.pending", | |
"internal": false, | |
"eventType": "FULFILL.collateral_documents_approved" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 44, | |
"invoke": [] | |
}, | |
"success": { | |
"id": "loan.payout_preparation.collateral_documents_approved.success", | |
"key": "success", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.collateral_documents_approved": [{ | |
"target": ["#loan.payout_preparation.collateral_documents_approved.success"], | |
"event": "FULFILL.collateral_documents_approved", | |
"actions": [], | |
"source": "#loan.payout_preparation.collateral_documents_approved.success", | |
"internal": false, | |
"eventType": "FULFILL.collateral_documents_approved" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout_preparation.collateral_documents_approved.success"], | |
"event": "FULFILL.collateral_documents_approved", | |
"actions": [], | |
"source": "#loan.payout_preparation.collateral_documents_approved.success", | |
"internal": false, | |
"eventType": "FULFILL.collateral_documents_approved" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 45, | |
"invoke": [] | |
} | |
}, | |
"on": {}, | |
"transitions": [], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 43, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"done.state.loan.payout_preparation": [{ | |
"target": ["#loan.payout"], | |
"event": "done.state.loan.payout_preparation", | |
"actions": [], | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "done.state.loan.payout_preparation" | |
}], | |
"ASK_FOR_OFFER_REFINEMENT": [{ | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}], | |
"ADJUST_REQUEST": [{ | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}], | |
"ACCEPT_OFFER": [{ | |
"target": ["#loan.payout_preparation"], | |
"event": "ACCEPT_OFFER", | |
"actions": [], | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ACCEPT_OFFER" | |
}], | |
"ASK_FOR_VOLUME_REFINEMENT": [{ | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "ASK_FOR_VOLUME_REFINEMENT", | |
"actions": [], | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ASK_FOR_VOLUME_REFINEMENT" | |
}], | |
"INITIATE_RISK_ADJUSTMENT": [{ | |
"target": ["#loan.risk_adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout"], | |
"event": "done.state.loan.payout_preparation", | |
"actions": [], | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "done.state.loan.payout_preparation" | |
}, { | |
"target": ["#loan.underwriting"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ASK_FOR_OFFER_REFINEMENT", | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ASK_FOR_OFFER_REFINEMENT" | |
}, { | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "ADJUST_REQUEST", | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ADJUST_REQUEST" | |
}, { | |
"target": ["#loan.payout_preparation"], | |
"event": "ACCEPT_OFFER", | |
"actions": [], | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ACCEPT_OFFER" | |
}, { | |
"target": ["#loan.awaiting_customer_feedback"], | |
"event": "ASK_FOR_VOLUME_REFINEMENT", | |
"actions": [], | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "ASK_FOR_VOLUME_REFINEMENT" | |
}, { | |
"target": ["#loan.risk_adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "INITIATE_RISK_ADJUSTMENT", | |
"source": "#loan.payout_preparation", | |
"internal": false, | |
"eventType": "INITIATE_RISK_ADJUSTMENT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 31, | |
"invoke": [] | |
}, | |
"payout": { | |
"id": "loan.payout", | |
"key": "payout", | |
"type": "compound", | |
"initial": "payment_details_check", | |
"history": false, | |
"states": { | |
"payment_details_check": { | |
"id": "loan.payout.payment_details_check", | |
"key": "payment_details_check", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.need_of_customer_balance_payment": [{ | |
"target": ["#loan.payout.waiting_for_customer_balance_payment"], | |
"event": "FULFILL.need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.payment_details_check", | |
"internal": false, | |
"eventType": "FULFILL.need_of_customer_balance_payment" | |
}], | |
"FULFILL.no_need_of_customer_balance_payment": [{ | |
"target": ["#loan.payout.waiting_for_payout_date"], | |
"event": "FULFILL.no_need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.payment_details_check", | |
"internal": false, | |
"eventType": "FULFILL.no_need_of_customer_balance_payment" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout.waiting_for_customer_balance_payment"], | |
"event": "FULFILL.need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.payment_details_check", | |
"internal": false, | |
"eventType": "FULFILL.need_of_customer_balance_payment" | |
}, { | |
"target": ["#loan.payout.waiting_for_payout_date"], | |
"event": "FULFILL.no_need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.payment_details_check", | |
"internal": false, | |
"eventType": "FULFILL.no_need_of_customer_balance_payment" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 47, | |
"invoke": [] | |
}, | |
"waiting_for_customer_balance_payment": { | |
"id": "loan.payout.waiting_for_customer_balance_payment", | |
"key": "waiting_for_customer_balance_payment", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.receive_payment": [{ | |
"target": ["#loan.payout.waiting_for_payout_date"], | |
"event": "FULFILL.receive_payment", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_customer_balance_payment", | |
"internal": false, | |
"eventType": "FULFILL.receive_payment" | |
}], | |
"FULFILL.need_of_customer_balance_payment": [{ | |
"target": ["#loan.payout.waiting_for_customer_balance_payment"], | |
"event": "FULFILL.need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_customer_balance_payment", | |
"internal": false, | |
"eventType": "FULFILL.need_of_customer_balance_payment" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout.waiting_for_payout_date"], | |
"event": "FULFILL.receive_payment", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_customer_balance_payment", | |
"internal": false, | |
"eventType": "FULFILL.receive_payment" | |
}, { | |
"target": ["#loan.payout.waiting_for_customer_balance_payment"], | |
"event": "FULFILL.need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_customer_balance_payment", | |
"internal": false, | |
"eventType": "FULFILL.need_of_customer_balance_payment" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 48, | |
"invoke": [] | |
}, | |
"waiting_for_payout_date": { | |
"id": "loan.payout.waiting_for_payout_date", | |
"key": "waiting_for_payout_date", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.validate_payout": [{ | |
"target": ["#loan.payout.payout_validated"], | |
"event": "FULFILL.validate_payout", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_payout_date", | |
"internal": false, | |
"eventType": "FULFILL.validate_payout" | |
}], | |
"FULFILL.no_need_of_customer_balance_payment": [{ | |
"target": ["#loan.payout.waiting_for_payout_date"], | |
"event": "FULFILL.no_need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_payout_date", | |
"internal": false, | |
"eventType": "FULFILL.no_need_of_customer_balance_payment" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout.payout_validated"], | |
"event": "FULFILL.validate_payout", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_payout_date", | |
"internal": false, | |
"eventType": "FULFILL.validate_payout" | |
}, { | |
"target": ["#loan.payout.waiting_for_payout_date"], | |
"event": "FULFILL.no_need_of_customer_balance_payment", | |
"actions": [], | |
"source": "#loan.payout.waiting_for_payout_date", | |
"internal": false, | |
"eventType": "FULFILL.no_need_of_customer_balance_payment" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 49, | |
"invoke": [] | |
}, | |
"payout_validated": { | |
"id": "loan.payout.payout_validated", | |
"key": "payout_validated", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.sent_payout_notice_to_bank": [{ | |
"target": ["#loan.payout.payout_pending"], | |
"event": "FULFILL.sent_payout_notice_to_bank", | |
"actions": [], | |
"source": "#loan.payout.payout_validated", | |
"internal": false, | |
"eventType": "FULFILL.sent_payout_notice_to_bank" | |
}], | |
"FULFILL.validate_payout": [{ | |
"target": ["#loan.payout.payout_validated"], | |
"event": "FULFILL.validate_payout", | |
"actions": [], | |
"source": "#loan.payout.payout_validated", | |
"internal": false, | |
"eventType": "FULFILL.validate_payout" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout.payout_pending"], | |
"event": "FULFILL.sent_payout_notice_to_bank", | |
"actions": [], | |
"source": "#loan.payout.payout_validated", | |
"internal": false, | |
"eventType": "FULFILL.sent_payout_notice_to_bank" | |
}, { | |
"target": ["#loan.payout.payout_validated"], | |
"event": "FULFILL.validate_payout", | |
"actions": [], | |
"source": "#loan.payout.payout_validated", | |
"internal": false, | |
"eventType": "FULFILL.validate_payout" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 50, | |
"invoke": [] | |
}, | |
"payout_pending": { | |
"id": "loan.payout.payout_pending", | |
"key": "payout_pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.sent_payout_notice_to_bank": [{ | |
"target": ["#loan.payout.payout_pending"], | |
"event": "FULFILL.sent_payout_notice_to_bank", | |
"actions": [], | |
"source": "#loan.payout.payout_pending", | |
"internal": false, | |
"eventType": "FULFILL.sent_payout_notice_to_bank" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.payout.payout_pending"], | |
"event": "FULFILL.sent_payout_notice_to_bank", | |
"actions": [], | |
"source": "#loan.payout.payout_pending", | |
"internal": false, | |
"eventType": "FULFILL.sent_payout_notice_to_bank" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 51, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"done.state.loan.payout": [{ | |
"CONFIRM_PAYOUT": "paid_out", | |
"event": "done.state.loan.payout", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": true, | |
"eventType": "done.state.loan.payout" | |
}], | |
"FULFILL.kyc_process_finished": [{ | |
"target": ["#loan.payout"], | |
"event": "FULFILL.kyc_process_finished", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "FULFILL.kyc_process_finished" | |
}], | |
"FULFILL.contract_signing_bank": [{ | |
"target": ["#loan.payout"], | |
"event": "FULFILL.contract_signing_bank", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_bank" | |
}], | |
"FULFILL.collateral_documents_approved": [{ | |
"target": ["#loan.payout"], | |
"event": "FULFILL.collateral_documents_approved", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "FULFILL.collateral_documents_approved" | |
}], | |
"CONFIRM_PAYOUT": [{ | |
"target": ["#loan.paid_out"], | |
"event": "CONFIRM_PAYOUT", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "CONFIRM_PAYOUT" | |
}] | |
}, | |
"transitions": [{ | |
"CONFIRM_PAYOUT": "paid_out", | |
"event": "done.state.loan.payout", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": true, | |
"eventType": "done.state.loan.payout" | |
}, { | |
"target": ["#loan.payout"], | |
"event": "FULFILL.kyc_process_finished", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "FULFILL.kyc_process_finished" | |
}, { | |
"target": ["#loan.payout"], | |
"event": "FULFILL.contract_signing_bank", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "FULFILL.contract_signing_bank" | |
}, { | |
"target": ["#loan.payout"], | |
"event": "FULFILL.collateral_documents_approved", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "FULFILL.collateral_documents_approved" | |
}, { | |
"target": ["#loan.paid_out"], | |
"event": "CONFIRM_PAYOUT", | |
"actions": [], | |
"source": "#loan.payout", | |
"internal": false, | |
"eventType": "CONFIRM_PAYOUT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 46, | |
"invoke": [] | |
}, | |
"paid_out": { | |
"id": "loan.paid_out", | |
"key": "paid_out", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"INVOICE": [{ | |
"target": ["#loan.invoicing"], | |
"event": "INVOICE", | |
"actions": [], | |
"source": "#loan.paid_out", | |
"internal": false, | |
"eventType": "INVOICE" | |
}], | |
"CONFIRM_PAYOUT": [{ | |
"target": ["#loan.paid_out"], | |
"event": "CONFIRM_PAYOUT", | |
"actions": [], | |
"source": "#loan.paid_out", | |
"internal": false, | |
"eventType": "CONFIRM_PAYOUT" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.invoicing"], | |
"event": "INVOICE", | |
"actions": [], | |
"source": "#loan.paid_out", | |
"internal": false, | |
"eventType": "INVOICE" | |
}, { | |
"target": ["#loan.paid_out"], | |
"event": "CONFIRM_PAYOUT", | |
"actions": [], | |
"source": "#loan.paid_out", | |
"internal": false, | |
"eventType": "CONFIRM_PAYOUT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [{ | |
"id": "setCollateralSecured", | |
"src": { | |
"type": "loan.paid_out:invocation[0]" | |
}, | |
"type": "xstate.invoke" | |
}], | |
"order": 52, | |
"invoke": [{ | |
"id": "setCollateralSecured", | |
"src": { | |
"type": "loan.paid_out:invocation[0]" | |
}, | |
"type": "xstate.invoke" | |
}] | |
}, | |
"invoicing": { | |
"id": "loan.invoicing", | |
"key": "invoicing", | |
"type": "compound", | |
"initial": "pending", | |
"history": false, | |
"states": { | |
"pending": { | |
"id": "loan.invoicing.pending", | |
"key": "pending", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.create_invoice": [{ | |
"target": ["#loan.invoicing.invoice_created"], | |
"event": "FULFILL.create_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.pending", | |
"internal": false, | |
"eventType": "FULFILL.create_invoice" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.invoicing.invoice_created"], | |
"event": "FULFILL.create_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.pending", | |
"internal": false, | |
"eventType": "FULFILL.create_invoice" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 54, | |
"invoke": [] | |
}, | |
"invoice_created": { | |
"id": "loan.invoicing.invoice_created", | |
"key": "invoice_created", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.send_invoice": [{ | |
"target": ["#loan.invoicing.invoice_sent"], | |
"event": "FULFILL.send_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_created", | |
"internal": false, | |
"eventType": "FULFILL.send_invoice" | |
}], | |
"FULFILL.create_invoice": [{ | |
"target": ["#loan.invoicing.invoice_created"], | |
"event": "FULFILL.create_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_created", | |
"internal": false, | |
"eventType": "FULFILL.create_invoice" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.invoicing.invoice_sent"], | |
"event": "FULFILL.send_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_created", | |
"internal": false, | |
"eventType": "FULFILL.send_invoice" | |
}, { | |
"target": ["#loan.invoicing.invoice_created"], | |
"event": "FULFILL.create_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_created", | |
"internal": false, | |
"eventType": "FULFILL.create_invoice" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 55, | |
"invoke": [] | |
}, | |
"invoice_sent": { | |
"id": "loan.invoicing.invoice_sent", | |
"key": "invoice_sent", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.settle_invoice": [{ | |
"target": ["#loan.invoicing.invoice_settled"], | |
"event": "FULFILL.settle_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_sent", | |
"internal": false, | |
"eventType": "FULFILL.settle_invoice" | |
}], | |
"FULFILL.send_invoice": [{ | |
"target": ["#loan.invoicing.invoice_sent"], | |
"event": "FULFILL.send_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_sent", | |
"internal": false, | |
"eventType": "FULFILL.send_invoice" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.invoicing.invoice_settled"], | |
"event": "FULFILL.settle_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_sent", | |
"internal": false, | |
"eventType": "FULFILL.settle_invoice" | |
}, { | |
"target": ["#loan.invoicing.invoice_sent"], | |
"event": "FULFILL.send_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_sent", | |
"internal": false, | |
"eventType": "FULFILL.send_invoice" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 56, | |
"invoke": [] | |
}, | |
"invoice_settled": { | |
"id": "loan.invoicing.invoice_settled", | |
"key": "invoice_settled", | |
"type": "final", | |
"history": false, | |
"states": {}, | |
"on": { | |
"FULFILL.settle_invoice": [{ | |
"target": ["#loan.invoicing.invoice_settled"], | |
"event": "FULFILL.settle_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_settled", | |
"internal": false, | |
"eventType": "FULFILL.settle_invoice" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.invoicing.invoice_settled"], | |
"event": "FULFILL.settle_invoice", | |
"actions": [], | |
"source": "#loan.invoicing.invoice_settled", | |
"internal": false, | |
"eventType": "FULFILL.settle_invoice" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 57, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"done.state.loan.invoicing": [{ | |
"COMPLETE_PROJECT": "completed", | |
"event": "done.state.loan.invoicing", | |
"actions": [], | |
"source": "#loan.invoicing", | |
"internal": true, | |
"eventType": "done.state.loan.invoicing" | |
}], | |
"INVOICE": [{ | |
"target": ["#loan.invoicing"], | |
"event": "INVOICE", | |
"actions": [], | |
"source": "#loan.invoicing", | |
"internal": false, | |
"eventType": "INVOICE" | |
}], | |
"COMPLETE_PROJECT": [{ | |
"target": ["#loan.completed"], | |
"event": "COMPLETE_PROJECT", | |
"actions": [], | |
"source": "#loan.invoicing", | |
"internal": false, | |
"eventType": "COMPLETE_PROJECT" | |
}] | |
}, | |
"transitions": [{ | |
"COMPLETE_PROJECT": "completed", | |
"event": "done.state.loan.invoicing", | |
"actions": [], | |
"source": "#loan.invoicing", | |
"internal": true, | |
"eventType": "done.state.loan.invoicing" | |
}, { | |
"target": ["#loan.invoicing"], | |
"event": "INVOICE", | |
"actions": [], | |
"source": "#loan.invoicing", | |
"internal": false, | |
"eventType": "INVOICE" | |
}, { | |
"target": ["#loan.completed"], | |
"event": "COMPLETE_PROJECT", | |
"actions": [], | |
"source": "#loan.invoicing", | |
"internal": false, | |
"eventType": "COMPLETE_PROJECT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 53, | |
"invoke": [] | |
}, | |
"completed": { | |
"id": "loan.completed", | |
"key": "completed", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"COMPLETE_PROJECT": [{ | |
"target": ["#loan.completed"], | |
"event": "COMPLETE_PROJECT", | |
"actions": [], | |
"source": "#loan.completed", | |
"internal": false, | |
"eventType": "COMPLETE_PROJECT" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.completed"], | |
"event": "COMPLETE_PROJECT", | |
"actions": [], | |
"source": "#loan.completed", | |
"internal": false, | |
"eventType": "COMPLETE_PROJECT" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 58, | |
"invoke": [] | |
}, | |
"cancelled": { | |
"id": "loan.cancelled", | |
"key": "cancelled", | |
"type": "atomic", | |
"history": false, | |
"states": {}, | |
"on": { | |
"REACTIVATE": [{ | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "REACTIVATE", | |
"source": "#loan.cancelled", | |
"internal": false, | |
"eventType": "REACTIVATE" | |
}], | |
"CANCEL": [{ | |
"target": ["#loan.cancelled"], | |
"event": "CANCEL", | |
"actions": [], | |
"source": "#loan.cancelled", | |
"internal": false, | |
"eventType": "CANCEL" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.adjustment"], | |
"actions": [{ | |
"type": "openEntityActions" | |
}], | |
"event": "REACTIVATE", | |
"source": "#loan.cancelled", | |
"internal": false, | |
"eventType": "REACTIVATE" | |
}, { | |
"target": ["#loan.cancelled"], | |
"event": "CANCEL", | |
"actions": [], | |
"source": "#loan.cancelled", | |
"internal": false, | |
"eventType": "CANCEL" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": 59, | |
"invoke": [] | |
} | |
}, | |
"on": { | |
"CANCEL": [{ | |
"target": ["#loan.cancelled"], | |
"event": "CANCEL", | |
"actions": [], | |
"source": "#loan", | |
"internal": false, | |
"eventType": "CANCEL" | |
}] | |
}, | |
"transitions": [{ | |
"target": ["#loan.cancelled"], | |
"event": "CANCEL", | |
"actions": [], | |
"source": "#loan", | |
"internal": false, | |
"eventType": "CANCEL" | |
}], | |
"entry": [], | |
"exit": [], | |
"activities": [], | |
"order": -1, | |
"invoke": [] | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment