Rules Filter in Business Rules Task

Description

I am using Business rule task in my process & integrating with drools. There is a field with the task name "Rule Name" which I understand should work as a filter. All rules ending with this field's value ONLY will be fired or excluded based on excluded radio button selection.

When i provide the rule name it not works as expected. With exclude selected as false it fires all rules else none even if I have rules matching/denying both the criteria.

------------------------------------------------------------------
SUGGESTED SOLUTION
------------------------------------------------------------------
While debugging the code in Activiti Engine jar I found the below issue in BpmnParse.java:

While building the filter list it was taking the input parameters list instead of rule name list.

I suggest the below code change to be done:

//Below code commented by agarwalk. It should use ruleString instead of ruleInputString
// String[] rules = ruleInputString.split(",");
//Below code added by agarwalk to correct the rule filter issue.
String[] rules = rulesString.split(",");

It will be great if this can be fixed in the latest possible release.

Environment

None

Assignee

Tijs Rademakers

Reporter

Vikash Agrawal

Labels

None

Components

Fix versions

Priority

Major
Configure