-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathcalculate_loan_workflow.json
More file actions
76 lines (76 loc) · 2.14 KB
/
Copy pathcalculate_loan_workflow.json
File metadata and controls
76 lines (76 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"name": "test_workflow",
"description": "Test Workflow for Loan Payment",
"version": 1,
"tasks": [
{
"name": "fetch_user_details",
"taskReferenceName": "fetch_user_details",
"type": "SIMPLE",
"inputParameters": {
"userEmail": "${workflow.input.userEmail}"
}
},
{
"name": "get_credit_score",
"taskReferenceName": "get_credit_score",
"type": "SIMPLE",
"inputParameters": {
"userAccountNumber": "${fetch_user_details.output.userAccount}"
}
},
{
"name": "calculate_loan_amount",
"taskReferenceName": "calculate_loan_amount",
"type": "SIMPLE",
"inputParameters": {
"creditRating": "${get_credit_score.output.creditRating}",
"loanAmount": "${workflow.input.loanAmount}"
}
},
{
"name": "loop_until_success",
"taskReferenceName": "loop_until_success",
"inputParameters": {
"loop_count": 3
},
"type": "DO_WHILE",
"decisionCases": {},
"defaultCase": [],
"forkTasks": [],
"startDelay": 0,
"joinOn": [],
"optional": true,
"defaultExclusiveJoinTask": [],
"asyncComplete": false,
"loopCondition": "if ( $.loop_until_success['iteration'] < $.loop_count ) { true; } else { false; }",
"loopOver": [
{
"name": "check_phone_number_valid",
"taskReferenceName": "check_phone_number_valid",
"inputParameters": {},
"type": "SIMPLE",
"decisionCases": {},
"defaultCase": [],
"forkTasks": [],
"startDelay": 0,
"joinOn": [],
"optional": false,
"defaultExclusiveJoinTask": [],
"asyncComplete": false,
"loopOver": []
}
]
}
],
"inputParameters": [
"userEmail"
],
"outputParameters": {
"accountNumber": "${fetch_user_details.output.userAccount}",
"creditRating": "${get_credit_score.output.creditRating}",
"authorizedLoanAmount": "${calculate_loan_amount.output.authorizedLoanAmount}",
"phoneNumberValid": "${check_phone_number_valid.output.valid}"
},
"schemaVersion": 2
}