Activiti

Rules Filter in Business Rules Task

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 5.6
  • Component/s: Engine
  • Labels:
    None
  • Number of attachments :
    0

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.

Activity

Hide
Tijs Rademakers added a comment -

Thanks for providing the solution

Show
Tijs Rademakers added a comment - Thanks for providing the solution

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: