Process variables propagation

Hello, I don't understand how to propagate process variables in a specific process instance.

1)

I've set a "java.util.ArrayList" "clientsarray" process variable at the pool level, that is initialized like this:

// import com.company.model.Clients;

// return new ArrayList Clients ();

2)

Then in another activity I'm building this clientsarray list, it's size is 4 at the end of the task when logging the content.

3)

Then I have an exclusive gateway and when testing clientsarray.size() as trigger it's null whereas it was 4 in the task before.

 

What is wrong in my implementation please ? Are process variables propagated end to end for a specific process instance aren't they ?

 

Thanks a lot for your help,

Pierre-Alain

Hello,

Yes, you are right, it should work as you want.

Some question

com.company.model.Clients

this is not a BDM  (Business Data Model) object isn't it? Clients come from an external JAR file that you upload in the studio?

==> If this is a BDM object, you must use a Business Data Model and specify this is a "multiple" variable.

Assuming the Clients class comes from a JAR file that you upload in the process.

How do you declare the variable? It must be declared as a "JAVA UtilCLient" or as a "Clients" but the multiple checkbox must be checked.

You can share on a dropbox your process if you like for a review.

Best,