When using businessRuleTask we can not define xml like activiti:class="${MyRuleServiceDelegate}" /> as mentioned in the user guide

Description

Hi I am learning and using Activiti.
When I want to use BusinessRuleTask I read the guide from
https://www.activiti.org/userguide/#bpmnBusinessRuleTaskXML

and, it is mentioned that when using businessRuleTask as as JavaService we can define xml like :
<businessRuleTask id="businessRuleTask" activiti:class="${MyRuleServiceDelegate}" />

but it can not be executed.

First, businessRuleTask can not support UEL. I have saw the code of "DefaultActivityBehaviorFactory" .There is only one method "createBusinessRuleTaskActivityBehavior" can resolve businessRuleTask and when using class we can only new a class in the way:
ruleActivity = (BusinessRuleTaskDelegate) clazz.newInstance();

I don't think this the bug of procedure, but I think we can correct the guid to let a newer understand activiti better.

At last , I wish that UEL can be supported in future version .

Thanks a lot.

Environment

Activiti 6.0.0

Status

Assignee

Unassigned

Reporter

Diary Tour

Labels

None

Components

Affects versions

6.0

Priority

Medium
Configure