Book Image

jBPM6 Developer Guide

Book Image

jBPM6 Developer Guide

Overview of this book

Table of Contents (21 chapters)
jBPM6 Developer Guide
Credits
About the Author
Acknowledgments
About the Author
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding the role of the runtime manager


The runtime manager's main role in an application is to provide an application-wide point to access process runtimes (all the necessary interconnected services to execute a process execution within a specific domain). The nature of those runtimes and how many different runtimes can exist in a particular domain is a decision that each of the runtime manager implementations available has to make. By default, a runtime will be composed of two main components: the KIE session where the process is executed and the Human task component where human tasks will be handled. Both are grouped and returned from the runtime manager through the RuntimeEngine interface:

public interface RuntimeManager {
    RuntimeEngine getRuntimeEngine(Context<?> context);
    void disposeRuntimeEngine(RuntimeEngine engine);
    String getIdentifier();
    void close();
}

public interface RuntimeEngine {
    KieSession getKieSession();
    TaskService getTaskService...