blob: c81621243314bfebef157c24fb6bdeb4052652df [file] [log] [blame]
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
name: 'demo'
spec:
flows:
- route:
from:
uri: kamelet:http-secured-source
steps:
- do-try:
steps:
- to: "log:when-a"
- to: "log:when-b"
do-catch:
- exception:
- "java.io.FileNotFoundException"
- "java.io.IOException"
on-when:
expression:
simple: "${body.size()} == 1"
steps:
- to: "log:io-error"
- choice:
when:
- expression:
simple: "${body.size()} == 1"
steps:
- toD: "log:xxx"
otherwise:
steps:
- toD: "log:yyy"