> ## 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

<CardGroup cols={2}>
  <Card title="What is Kogito?" icon="book-open" href="/docs/faq/concepts/what-is-kogito">
    Understand the Kogito runtime that executes your BPMN processes.
  </Card>

  <Card title="Kogito" icon="gears" href="/docs/components/kogito">
    Explore Kogito components and how Aletyx builds on them.
  </Card>

  <Card title="Process API" icon="code" href="/docs/architecture/processes/basic-bpmn/api">
    Reference the process API for driving BPMN processes programmatically.
  </Card>

  <Card title="Runtimes" icon="server" href="/docs/architecture/processes/architecture/runtimes">
    Learn how process runtimes are structured and deployed.
  </Card>

  <Card title="Processes Guide" icon="diagram-project" href="/docs/guides/processes">
    Dive into authoring and running BPMN processes with Aletyx.
  </Card>

  <Card title="BPMN Examples" icon="list" href="/docs/guides/tutorials/bpmn-example">
    Study worked BPMN examples you can adapt to your own workflows.
  </Card>
</CardGroup>
