Information Technology Reference
In-Depth Information
The different implementations available
The
RuntimeManager
and
RuntimeEngine
are interfaces that can be implemented in
any way a specific domain requires. There is no correct way of using the runtime man-
agers, because the specifics of what your organization is trying to accomplish will determ-
ine whether a KIE session should be shared between different processes or not. Neverthe-
less, the jBPM6 project provides a number of implementations for the most common situ-
ations.
Depending on which implementation of the runtime manager we use, we will need to re-
quest a
RuntimeEngine
instance with different parameters. The runtime manager
provides the
getRuntimeEngine
method to obtain a
RuntimeEngine
instance using
a
Context
object as a parameter. This
Context
object will have the responsibility of
identifying the actual instance of the KIE session and other configuration components for
our runtime that we need for each different context.
The following implementations of the
RuntimeManager
interface are already provided
in jBPM6:
• Singleton Runtime Manager
• Per Process Instance Runtime Manager
• Per Request Runtime Manager
We will discuss each one in detail, learn how they can be used, and see the different types
of
Context
objects that should be used to obtain the
RuntimeEngine
instances from
each one of them.