---
title: "Integrate Jev decision models with Apache Camel and Red Hat OpenShift"
description: "The post provides a step-by-step guide to integrating Jev, a System One decision model from TypeSafe, into enterprise architectures using Apache Camel and Red Hat OpenShift. It demonstrates a coffee ordering example where the model classifies customer requests into drink types or asks for clarification when the input is ambiguous. The guide covers shell-based API calls, defining state and allowed answers, inspecting probabilities and confidence, and applying thresholds in application code. It also discusses clean architecture with a ComplaintClassifier interface and platform-level integration using Camel routes, OpenShift for credentials, and a gateway for capability exposure. The post emphasizes decoupling application policy from model predictions and wrapping external services behind stable contracts to avoid vendor lock-in."
---

# Integrate Jev decision models with Apache Camel and Red Hat OpenShift

[Red Hat](https://yomu.fyi/company/red-hat) · Maarten Vandeperre · Oct 30, 2026

**Type:** Tutorial

## Summary

The post provides a step-by-step guide to integrating Jev, a System One decision model from TypeSafe, into enterprise architectures using Apache Camel and Red Hat OpenShift. It demonstrates a coffee ordering example where the model classifies customer requests into drink types or asks for clarification when the input is ambiguous. The guide covers shell-based API calls, defining state and allowed answers, inspecting probabilities and confidence, and applying thresholds in application code. It also discusses clean architecture with a ComplaintClassifier interface and platform-level integration using Camel routes, OpenShift for credentials, and a gateway for capability exposure. The post emphasizes decoupling application policy from model predictions and wrapping external services behind stable contracts to avoid vendor lock-in.

## Context

The post is a technical guide for integrating Jev, a System One decision model from TypeSafe, into enterprise architectures using Apache Camel and Red Hat OpenShift. It targets developers and platform engineers looking to add bounded semantic judgments to their applications while maintaining vendor neutrality and governance.

## Approach / What changed

The post walks through a step-by-step integration of Jev decision models with Apache Camel and Red Hat OpenShift. It starts with a shell-based API call example using curl and jq, defining state and allowed answers for a choice question. It then demonstrates inspecting the response, applying confidence thresholds in application code, and discusses clean architecture with a ComplaintClassifier interface. Finally, it outlines a platform-level integration strategy using Camel routes, OpenShift for credentials and network policy, a gateway for capability exposure, and progressive release with evaluation.

## Takeaways

- Jev’s confidence value is derived from the shape of the entire probability distribution, not the winning probability; all probability on one option gives 1.0, and more even spread lowers confidence.
- The ask\_for\_clarification option is a real application outcome that prevents the model from being forced to pick an answer when none is justified by the input.
- For production readiness, wrap Jev behind a stable capability contract on OpenShift with Camel routes, store credentials securely, and release progressively after evaluation against labeled test sets.

## FAQ

### How is confidence different from the winning probability?

Confidence is derived from the shape of the entire probability distribution. If all probability is on one option, confidence is 1.0; the more evenly spread the probabilities, the lower the confidence. It is not the same as the winning probability.

### Why is ask\_for\_clarification a necessary option?

The ask\_for\_clarification option is a real application outcome that tells the ordering interface to ask another question instead of sending an uncertain recipe to the coffee machine. Without it, the model is forced to pick one of the drinks even when none is justified.

### What should be tested before using Jev in production?

The post recommends building a labeled set that includes ambiguous orders, negation, missing details, prompt injection inside customer text, and uncommon cases. Compare Jev with current LLM structured output and a simple rules baseline, recording correctness, calibration, latency, total cost, and human override rate.

**Tags:** [Apache Camel](https://yomu.fyi/topic/apache-camel), [Decision Models](https://yomu.fyi/topic/decision-models), [Jev](https://yomu.fyi/topic/jev), [Red Hat OpenShift](https://yomu.fyi/topic/red-hat-openshift)

- Source: [Red Hat](https://developers.redhat.com/articles/2026/10/30/integrate-jev-decision-models-apache-camel-and-red-hat-openshift)
- Source URL: https://developers.redhat.com/articles/2026/10/30/integrate-jev-decision-models-apache-camel-and-red-hat-openshift
- Ingested by Yomu: 2026-10-30T15:00:11.092Z

[Read original post](https://developers.redhat.com/articles/2026/10/30/integrate-jev-decision-models-apache-camel-and-red-hat-openshift)
