Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
jBPM6 Developer Guide

You're reading from   jBPM6 Developer Guide Learn about the components, tooling, and integration points that are part of the JBoss Business Process Management (BPM) framework

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher Packt
ISBN-13 9781783286614
Length 310 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (13) Chapters Close

Preface 1. Why Do We Need Business Process Management? FREE CHAPTER 2. BPM Systems' Structure 3. Using BPMN 2.0 to Model Business Scenarios 4. Understanding the KIE Workbench 5. Creating a Process Project in the KIE Workbench 6. Human Interactions 7. Defining Your Environment with the Runtime Manager 8. Implementing Persistence and Transactions 9. Integration with Other Knowledge Definitions 10. Integrating KIE Workbench with External Systems A. The UberFire Framework Index

Creating your own runtime manager


The provided runtime manager implementations are enough to start working with jBPM6 without going into the details of how components are created. However, several organizations reach a point where they need to define specific sharing between processes in a simple way to allow special process instance collaborations through rules. One example of this would be writing monitoring rules that count how many process instances of a specific domain are being created within the last hour that are not yet finished, and take actions when that number reaches high values. This is something that can be easily written in the internal Drools Rule Language (DRL), as shown in the following DRL code:

rule "too many processes"
when 
    $n: Number(intValue > 1000) from accumulate(
        $p: WorkflowProcessInstance() over window:time(1h)
        eval($p.getVariable("domainXProcess") != null)
    )
then 
    externalService.sendWarning("Too many processes created in the last...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image