cancel
Showing results for 
Search instead for 
Did you mean: 

BusinessRuleTask question

user8p
Champ in-the-making
Champ in-the-making
Hi,

I was hoping to plug in external rules engine using the way I read in Activiti user guide -
if you want to plug in your implementation of the rule task, e.g. because you want to use Drools differently or you want to use a completly different rule engine, then you can use the class or expression attribute on the BusinessRuleTask and it will behave exactly like a ServiceTask

However with as simple implementation as below, I am getting org.activiti.engine.ActivitiException: deployment 5 doesn't contain any rules error -

<businessRuleTask id="businessRuleTask" activiti:class="${MyRuleServiceDelegate}" />

Stacktrace -
org.activiti.engine.ActivitiException: deployment 5 doesn't contain any rules
org.activiti.engine.impl.rules.RulesHelper.findKnowledgeBaseByDeploymentId(RulesHelper.java:51)
org.activiti.engine.impl.bpmn.behavior.BusinessRuleTaskActivityBehavior.execute(BusinessRuleTaskActivityBehavior.java:48)


I looked at the classes in stack-trace (RulesHelper.java and BusinessRuleTaskActivityBehavior.java),  activiti process engine still tries to find KnowledgeBase. Is this expected when we are trying use an external drools engine? Please advise.
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Which version of Activiti are you using? Because in Activiti 5.14 this usage of the business rule task is not supported anymore. You can use a service task to implement your custom rule execution logic instead of using a business rule task.

Best regards,

satyabratam
Champ in-the-making
Champ in-the-making
Is it working now !!! Plz share me some more info on this….

rubesh
Champ in-the-making
Champ in-the-making
Dear Team.,
      Am new to this domain and trying to install websphere version 8.5.0 in my server.. Service has been successfully installed and I started the service also… when am trying for deployment am unable to in browser…. This displaying the error as follows  

Error 404: java.io.FileNotFoundException: SRVE0190E: File not found: /


Please anyone help me to get out from this one…. Thanks in advance….. Am waiting…….

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,
I am not sure whether this issue is connected to business rules.
It seems more like a problem not connected with activiti. I did not find any org.activiti.* package in the stacktrace. (Resource bundle not found).

Regards
Martin