document:
  dsl: '1.0.0'
  namespace: test
  name: try-catch-retry-inline
  version: '0.1.0'
do:
  - tryGetPet:
      try:
        - getPet:
            call: http
            with:
              method: get
              endpoint: http://localhost:9797
              redirect: true
      catch:
        errors:
          with:
            type: https://serverlessworkflow.io/spec/1.0.0/errors/communication
            status: 404
        retry:
          delay: ${"PT\(.delay)S"}
          backoff:
            exponential: {}
          limit:
            attempt:
              count: 5