> ## Documentation Index
> Fetch the complete documentation index at: https://aletyx.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How do I invoke Kogito processes with Java APIs instead of REST?

> Drive Kogito BPMN processes from Java instead of REST: disable the generated endpoints and use CDI injection with the ProcessService API for full control.

By default Kogito auto-generates REST endpoints for your BPMN processes, but you
can drive them directly from Java instead — useful when you need custom
validation, want to call from other Java services, or prefer not to expose
processes over REST. The pattern is two steps: disable the generated REST layer
with `kogito.generate.rest=false`, then use CDI injection and the `ProcessService`
API to instantiate and manage processes programmatically. This gives you full
control over how and when your workflows are triggered.

[Read the full post →](https://aletyx.ai/how-to-use-java-apis-with-kogito-process/)

## Where to go next

> [card] [What is Kogito?](https://aletyx.ai/docs/faq/concepts/what-is-kogito.md)
>
> Understand the Kogito runtime that executes your BPMN processes.

> [card] [Kogito](https://aletyx.ai/docs/components/kogito.md)
>
> Explore Kogito components and how Aletyx builds on them.

> [card] [Process API](https://aletyx.ai/docs/architecture/processes/basic-bpmn/api.md)
>
> Reference the process API for driving BPMN processes programmatically.

> [card] [Runtimes](https://aletyx.ai/docs/architecture/processes/architecture/runtimes.md)
>
> Learn how process runtimes are structured and deployed.

> [card] [Processes Guide](https://aletyx.ai/docs/guides/processes.md)
>
> Dive into authoring and running BPMN processes with Aletyx.

> [card] [BPMN Examples](https://aletyx.ai/docs/guides/tutorials/bpmn-example.md)
>
> Study worked BPMN examples you can adapt to your own workflows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.