CDI and Java EE Integration
|
Этот раздел перенесён из документации Camunda 7 и в дальнейшем будет доработан с учётом особенностей OpenBPM Engine |
The camunda-engine-cdi and camunda-engine-cdi-jakarta modules provide programming model integration with CDI (Context and Dependency Injection).
CDI is the Jakarta EE/Java EE standard for Dependency Injection. The Camunda CDI integration leverages both the configuration of the Camunda engine
and the extensibility of CDI. The most prominent features are:
-
A custom El-Resolver for resolving CDI beans (including EJBs) from the process.
-
Support for
@BusinessProcessScopedbeans (CDI beans, the lifecycle of which are bound to a process instance). -
Declarative control over a process instance using annotations.
-
The Process Engine is hooked-up to the CDI event bus.
-
Works with Jakarta EE, Java EE, and Java SE.
-
Support for unit testing.
QUARKUS ENGINE EXTENSION:
Since Quarkus ArC does not aim to fully implement CDI 2.0, you cannot use the full range of features the camunda-engine-cdi module provides.
Read about the limitations in the Quarkus Integration guide.
Maven Dependency
To use the camunda-engine-cdi module inside your application, you must include the following Maven dependency:
{{< note title="" class="info" >}} Please import the Camunda BOM /get-started/apache-maven/ to ensure correct versions for every Camunda project.
<dependency>
<groupId>io.openbpm.bpm</groupId>
<artifactId>camunda-engine-cdi</artifactId>
</dependency>
For Jakarta EE 9+ containers, use the following dependency instead:
<dependency>
<groupId>io.openbpm.bpm</groupId>
<artifactId>camunda-engine-cdi-jakarta</artifactId>
</dependency>
{{< note title="" class="info" >}}
There is a project template for Maven called camunda-archetype-ejb-war, which gives you a complete running project, including CDI integration.
Лицензия и атрибуция
Эта документация была создана на базе материала "Camunda 7 Docs" от Camunda, находится под лицензией Creative Commons Attribution-ShareAlike 3.0 Unported License .
Оригинал документации: https://docs.camunda.org