File tree 1 file changed +6
-6
lines changed
product/src/main/kotlin/nl/nlportal/product/service
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,10 @@ class DmnService(
108
108
}
109
109
110
110
// handle the configured static variables
111
- if ( beslisTabelConfiguration.variabelen.containsKey( BESLISTABLE_KEY_STATIC ) && beslisTabelConfiguration.variabelen [BESLISTABLE_KEY_STATIC ] != null ) {
111
+ beslisTabelConfiguration.variabelen[BESLISTABLE_KEY_STATIC ]?. let {
112
112
variablesMapping.putAll(
113
113
mapBeslisTabelStaticVariables(
114
- beslisTabelConfiguration.variabelen[ BESLISTABLE_KEY_STATIC ] !! ,
114
+ it ,
115
115
),
116
116
)
117
117
}
@@ -179,20 +179,20 @@ class DmnService(
179
179
180
180
// check if the beslisTabelVariables contains a producttype configuration,
181
181
// if yes map the variables with the json of the productType
182
- if ( beslisTabelVariables.containsKey( BESLISTABLE_KEY_PRODUCT_TYPE ) && beslisTabelVariables [BESLISTABLE_KEY_PRODUCT_TYPE ] != null ) {
182
+ beslisTabelVariables[BESLISTABLE_KEY_PRODUCT_TYPE ]?. let {
183
183
variablesMapping.putAll(
184
184
mapBeslisTabelVariablesWithSource(
185
- beslisTabelVariables[ BESLISTABLE_KEY_PRODUCT_TYPE ] !! ,
185
+ it ,
186
186
Mapper .get().writeValueAsString(productType),
187
187
),
188
188
)
189
189
}
190
190
191
191
// handle the configured static variables
192
- if ( beslisTabelVariables.containsKey( BESLISTABLE_KEY_STATIC ) && beslisTabelVariables [BESLISTABLE_KEY_STATIC ] != null ) {
192
+ beslisTabelVariables[BESLISTABLE_KEY_STATIC ]?. let {
193
193
variablesMapping.putAll(
194
194
mapBeslisTabelStaticVariables(
195
- beslisTabelVariables[ BESLISTABLE_KEY_STATIC ] !! ,
195
+ it ,
196
196
),
197
197
)
198
198
}
You can’t perform that action at this time.
0 commit comments