Book Image

Mastering jBPM6

By : Simone Fiorini, Arun V Gopalakrishnan
Book Image

Mastering jBPM6

By: Simone Fiorini, Arun V Gopalakrishnan

Overview of this book

Table of Contents (18 chapters)
Mastering jBPM6
About the Authors
About the Reviewers

RuntimeManager service and the engine

RuntimeManager has been introduced to simplify the configuration of KieBase (KnowledgeBase) and KieSession (KnowledgeSession). Its main duty is to manage and create instances of RuntimeEngine according to predefined strategies (see the Runtime strategy section).

org.kie.api.runtime.manager.RuntimeEngine is the entry point to the engine services; its main purpose is to provide the user with pre-configured and ready-to-use engine components:

  • KieSession

  • TaskService

  • AuditService

org.kie.api.runtime.manager.RuntimeManager unburdens the user from the development of a typical boilerplate code; it sets up the execution environment for processes (wrapping the KieSession and the task service into the RuntimeEngine) and manages the following Drools services:

  • Scheduler service: The scheduler service manages timer-based jobs for execution (we have seen it in Chapter 4, Operation Management, and Chapter 5, BPMN Constructs with Async task)

  • TimerService: Implements timer...