-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathregistration-processor-camel-routes-res-update-mz.xml
145 lines (145 loc) · 6.06 KB
/
registration-processor-camel-routes-res-update-mz.xml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<routes xmlns="http://camel.apache.org/schema/spring">
<!-- securezone-notification to packet-uploader Route -->
<route id="securezone-notification-->packet-uploader res_update route">
<from uri="vertx:securezone-notification-res_update-bus-out" />
<log
message="securezone-notification-->packet-uploader res_update route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:packet-uploader-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<!-- packet-uploader to packet-validator Route -->
<route id="packet-uploader-->packet-validator res_update route">
<from uri="vertx:packet-uploader-res_update-bus-out" />
<log
message="packet-uploader-->packet-validator res_update route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:packet-validator-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="packet-validator-->demo-dedupe res_update route">
<from uri="vertx:packet-validator-res_update-bus-out" />
<log
message="packet-validator-->demo-dedupe res_update route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:demo-dedupe-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="demo-dedupe-->uin-generation res_update route">
<from uri="vertx:demo-dedupe-res_update-bus-out" />
<log
message="demo-dedupe-->uin-generation res_update route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:uin-generator-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"address":"abis-handler-bus-in"'</simple>
<to uri="vertx:abis-handler-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"isValid":false' and ${bodyAs(String)} contains '"internalError":false'</simple>
<to uri="vertx:message-sender-bus-in"/>
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<route id="abis-handler-->abis-middleware res_update route">
<from uri="vertx:abis-handler-res_update-bus-out" />
<log
message="abis-handler-->abis-middleware res_update route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"address":"abis-middle-ware-bus-in"'</simple>
<to uri="vertx:abis-middle-ware-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"address":"demo-dedupe-bus-in"'</simple>
<to uri="vertx:demo-dedupe-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"address":"bio-dedupe-bus-in"'</simple>
<to uri="vertx:bio-dedupe-bus-in"/>
</when>
</choice>
</route>
<route id="manual-verification-->uin-generation res_update route">
<from uri="vertx:manual-verification-res_update-bus-out" />
<log
message="manual-verification-->uin-generation res_update route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:uin-generator-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"isValid":false' and ${bodyAs(String)} contains '"internalError":false'</simple>
<to uri="vertx:message-sender-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
<!-- UIN Generator to Printing and Message Sender Route -->
<route id="uin-generation route-->printing-stage-->message-sender res_update route">
<from uri="vertx:uin-generator-res_update-bus-out" />
<log
message="uin-generation-->printing-stage and message-sender-stage res_update route ${bodyAs(String)}" />
<choice>
<when>
<simple>${bodyAs(String)} contains '"isValid":true'</simple>
<to uri="vertx:message-sender-bus-in" />
<to uri="vertx:printing-bus-in" />
</when>
<when>
<simple>${bodyAs(String)} contains '"internalError":true'</simple>
<to uri="vertx:retry-bus-in" />
</when>
<otherwise>
<to uri="vertx:error-bus-in" />
</otherwise>
</choice>
</route>
</routes>