I'm calling sub process from main process. I'm using Alfresco Activiti 7.1.0.M3.1. Sub process starting without a problem, but when I'm trying to get variables in it with execution.getVariables() or execution.getVariable("par1") I get nothing. (empty map or null) This is the way I'm setting variable in main process:
I found a flag in callActivity:callActivity.isInheritVariables()with this flagtrue(it can't be set from Eclipse, only from java), then variables passing to sub process but with the same names as in main process (var1i). And when I change this variable in sub process, it doesn't return to main.
is taken. So it seemed not to work at all. I see the only way to write own implementation CallActivityBehavior and to set it to engine, and it will work, but in docs it should work from default configuration. I checked methods that should do all the work in engine. And they do nothing. org.activiti.engine.impl.bpmn.behavior.CallActivityBehavior