Hi Patricia,
Glad to see that you have interesting about this feature.
The RulesActivity in jPDL used Drools as the business rule engine, we could put some facts in it, when it finished calculation, will put the result to a process instance variable. I think it could be not hard to move this feature from jPDL to BPMN2.