cancel
Showing results for 
Search instead for 
Did you mean: 

Subprocess and variables

r3dge
Champ in-the-making
Champ in-the-making
hi,

I am working on a multi-instance subprocess. The first step of the subprocess (java service) is to set a local variable :

setVariableLocal("typedoc", doc.getProperty(PropertyIds.OBJECT_TYPE_ID).getValueAsString());

A condition is set on sequence flow : ${typedoc!="bdc"}

I have an error : unknown property typedoc.

I don't understand the error because the variable is set for each subprocess instances.

Thanks.
2 REPLIES 2

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Could you create jUnit test?
http://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin

r3dge
Champ in-the-making
Champ in-the-making
problem solved : i replace "setvVariableLocal" with "setVariable".

I guessed "setVariableLocal" has to be used to set a subprocess variable.