jBPM5 is business process management workflow application. It is the latest version of the jBPM project. It is based on the BPMN 2.0 specification and supports the entire life cycle of the business process (from authoring through execution to monitoring and management).
Questions tagged [drools-flow]
124 questions
0
votes
1 answer
How to dynamically select drools rules for execution at business rule task level?
I've few drools rules that I want to use in different rule flows. Since, Drools rule supports only one ruleflow-group name at a time and rule flow business rule task also can be mapped with single ruleflow-group, I'm not able to use same rule in…

pai
- 33
- 1
- 5
0
votes
1 answer
writing condition for list1.contains(list2) in drools
I gave pojos like
Customer{
List groups;
}
Master{
List groups;
}
I want to check conditions like
master1.groups.containsAny(customer1.groups);
and also
master1.groups.containsAll(customer1.groups);
How can i write drools…

Rohit Raman Das
- 3
- 2
0
votes
1 answer
How to get a maximum date among the list of past dates in drools?
From the List of Orders, i need to collect dates which are past to requesteffDate and requesteffTime and take the maximum of the past dates.
function boolean dateCheck(Date effdt, Date efftm) {
String efffdt = new…

Anvesh
- 1
- 3
0
votes
0 answers
Loading drool's binary package from classpath raises StreamCorruptedException
I'm currently refactoring an application that uses drools 5.3.1, trying to add a binary package file from classpath instead of a taking it from a URL, but I'm stuck with the following exception:
java.io.StreamCorruptedException: invalid stream…

gnzlrm
- 190
- 1
- 12
0
votes
1 answer
How to use the function in drools with two parameters
I want to check whether the student id is present in emp id of the company class.
If a studentid is present in the empidlist, then i should throw the error.
I have tried it in two different ways:
1st
rule :"check the student id is present in…

Anvesh
- 1
- 3
0
votes
1 answer
How do I get a list of variables from the list of objects in drools
My rule is as follows:
when
C : Company()
$empname : List() collect from (Employee($empname : empname) from C.employees)
then
System.out.println($empname);
The corresponding class:
public class Company {
private List employees;
…

Anvesh
- 1
- 3
0
votes
2 answers
JBPM - Process instance XXX is disconnected
We are facing error 'Process instance XXX is disconnected' very frequently in our project and holding up the tasks operations.
We are using SynchronizedTaskService for task operation:
Code snippet are below:
final RuntimeManager runtimeManager =…

Dynamic Meta
- 71
- 13
0
votes
1 answer
Qn on Drools Flow: How to specify a ruleflow to start at specific node?
I'm working on a Drools project which requires pausing of ruleflow (write into database) and resuming the ruleflow (read from database). I know that Drools provides out of the box JPA/transaction style persistence, one I couldn't get it running and…

Style
- 155
- 1
- 1
- 9
0
votes
1 answer
Drools Decision table error : Error while creating KieBase
I am trying to implement drools decision table. When i implemented my own sample code i am getting below error :
java.lang.RuntimeException: Error while creating KieBase.
The error visible in console of my Eclipse IDE is…

Vikram
- 332
- 3
- 16
0
votes
1 answer
how to add value to duration attribute in drools
Whenever i write duration(0s), it works but as soon as i change it to duration(1s) or duration(5s), the rule doesn't fire...
This is the rule which i want to fire.
rule "ContainsChecking"
agenda-group "town4"
duration(0s)
when
Town(owner…

John
- 3
- 1
0
votes
1 answer
Drools all rules are getting loaded
I am using drools in my project and assume it has 100 rules. I have two process flow (typically it has start node->rule flow task->end node). One process flow's rule flow task is specified with rule flow-group which is assigned to 50 rules and…

Lolly
- 34,250
- 42
- 115
- 150
0
votes
1 answer
Getting some event from Drools when the fact does not match anymore
Please have a look at the two code settings below.
Setting 1:
public class DroolsAnotherTest {
private static KieSession kSession;
private static Building building;
private static FactHandle buildingFact;
public static final void…

InconsistentHashing
- 171
- 13
0
votes
1 answer
Drools Workbench - Compare common attribute from different objects
Does anyone know how to add a condition on drools workbench for comparing attributes with the same name but from different objects (like their IDs) ?
Workbench screenshot
What I want to add is a 3rd condition like "l.ID = o.ID". If the facts do not…

Equinox
- 46
- 3
0
votes
0 answers
How to deal with Drools match
I have asked a somewhat similar question, but it wasn't formulated properly. I will try to explain it once more.
Below is my use case in a very abstract way.
(i). If there is at least one objA of type A, create another obj2A of type A.
(ii) If there…

InconsistentHashing
- 171
- 13
0
votes
1 answer
Drools rules more than one ruleflow-group
I have some rules and rule flows. I have scenario that I should assign more than one ruleflow-group to a rule. I m in a situation where I cant assign a common rule flow group name. When I gave two rule flow group name like ruleflow-group "group1"…

Lolly
- 34,250
- 42
- 115
- 150