ninjahail opened a new issue, #401:
URL: https://github.com/apache/camel-karavan/issues/401
I am trying to catch a JsonValidation exception from JsonValidatior action
kamelet using try catch. But the catch block is not catching the exception.
this is the flow yaml:
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
name: helix-json-flow.yaml
spec:
flows:
- route:
from:
uri: kamelet:timer-source
steps:
- doTry:
steps:
- to:
uri: kamelet:json-schema-validator-action
parameters:
template: file:jsonschema.json
doCatch:
- steps:
- log:
message: '''error received: Not Valid'''
- bean:
ref: com.infosys.platforms.StepsDemo.transform.transform
beanType: com.infosys.platforms.StepsDemo.transform.transform
method: process
- to:
uri: mongodb:mongo
parameters:
collection: JsonFiles
database: Helix
hosts: localhost:27017
operation: insert
outputType: Document
- log:
message: '''received body: ${body}'''
loggingLevel: INFO
parameters:
period: 300000000
message: >-
{ "BreweryCod" : "MERR01", "InterfaceRunTimeStamp":
"09-03-2021-06:35:19", "ArrivalTSP" : "09-03-2021 06:35:19",
"CustomerNumber" : "50001", "LoadTenderID" : "80023" }
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]