Questions tagged [drools-flow]

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).

124 questions
1
vote
0 answers

How to pass and read the vlaues from map in Drools DRT template?

I am trying to pass a map in DRT template of the of the drools like this TEMPLATE template "another map" rule "test map_2" no-loop true dialect "java" when namedmap:Map(map:"${namedTags}") review:FactNew( …
Harsha
  • 86
  • 5
1
vote
1 answer

Unable to update the fact even when rule is fired

I have implemented builder design pattern and I have conditions on the abstract class and want to update the fact that extends the abstract class. Although the rule is fired but it doesn't update the fact why? DRL rule "Rule_1" when $a :…
Harsha
  • 86
  • 5
1
vote
1 answer

While reading Drools Drt with some given Parameter, The condition part in rule gets disappear for the Empty String or null values

While running Drools DRT with some empty values gives an error. This is the template which we have used.... rule "Rule1_@{row.rowNumber}" salience @{salience} dialect "java" when variable:Fact(Context == "@{context}") then …
Samyak
  • 81
  • 8
1
vote
2 answers

While reading Drools Drt with some given Parameters, The condition part in rule gets disappear for the Empty Values as well as for Empty String

While running Drools DRT with some empty values gives an error . This is the rule which we have used.... rule "Rule1_@{row.rowNumber}" when variable:Fact(("All"=="@{Column1}" || ("Gold"=="@{Column1}" && @{Column2} == GoldId) ||…
Samyak
  • 81
  • 8
1
vote
0 answers

Drools automatically Deleting Events from KieSession

I have a drools kiesession which has multiple entry points (20-50). I am facing an issue where at some point all the events inside that entry point are getting deleted automatically and the Fact count in the entry point is showing as 1. I want…
Prog_G
  • 1,539
  • 1
  • 8
  • 22
1
vote
1 answer

Does Drools/JBPM5 support data flow?

Does Drools/JBPM5 support data flow? Or is it only control flow?
Fakrudeen
  • 5,778
  • 7
  • 44
  • 70
1
vote
0 answers

Random Agenda Group get focused

I have created two different rules, which belong to two different agenda-groups. First one: rule "32-30-33.32" dialect "java" salience 0 agenda-group "32-30" when map : Map((this["Product Name"].toUpperCase().contains("PREMIUM ADPRODUCT")) &&…
lucifer
  • 405
  • 5
  • 13
1
vote
0 answers

Drools - Kie Spring Integration - Interfaces

I am a newbie to Drools, Need some clarificatoins on Drools - Spring Integration. public KieFileSystem kieFileSystem() throws IOException { KieFileSystem kieFileSystem = getKieServices().newKieFileSystem(); for (Resource file :…
ranafeb14
  • 437
  • 1
  • 7
  • 12
1
vote
2 answers

Do we have any way to perform test coverage of drl files in Drools rule engine?

Basically I want to derive the percentage of the rule execution which has been actually covered by the unit tests written around them. Suggestions would be really helpful.
1
vote
0 answers

Drools Windowing is Executing other rules after when the window time is over

I am using Drool Fusion to execute windowing rules. The following is my Test class: public class Test { int count; public int getCount() { return count; } public void setCount(int count) { this.count = count; …
Prog_G
  • 1,539
  • 1
  • 8
  • 22
1
vote
2 answers

Drools Decision table rules not using updated values

I am using Drools Rules Server as a service. We are using a decision table Pre Rules Movie Object: actor: "unknown" movie: "Ghostbusters" rating: 9 I have 2 simple rules in a Drools Decision table. The 1st rule checks for a value…
JonoPEI
  • 11
  • 2
1
vote
0 answers

Vehicle Routing With Staff

I am working on a solution where we need to route our vehicle to locations of Tasks asked by our Customers. Here is how my domain looks like: interface TaskOrVehicle{ @InverseShadowVarible Task nextTask; getLocation(); } Task: @PlanningEntity …
Sachin Verma
  • 3,712
  • 10
  • 41
  • 74
1
vote
1 answer

JBPM to Drools Flow - Is there a documented migration path?

I'm currently using a fairly old version of JBPM for workflow processing as part of a larger project. I'm investigating the possibility of moving to the Drools Flow library as a replacement to JBPM. I've found a lot of documentation about migrating…
Erica
  • 2,251
  • 16
  • 21
1
vote
1 answer

How can I continue a Drools Flow process when I receive a JMS Message?

I have a very simple flow, a JMS Message starts a process which receives a List of objects. A foreach iterates through this list and sends a JMS Message to component to process the object in the list. This component needs to send a completion…
Greg
  • 765
  • 2
  • 9
  • 17
1
vote
0 answers

Activate the rule flow group in Drools

When the rules in the .drl file is grouped into "ruleflow-group", it needs to be activated externally to fire those rules. But how to activate it in knowledge session? I tried using the following: ksession.getAgenda().getAgendaGroup("ruleflow-group…
1
2
3
8 9