Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Aukema
Creator
Creator

Job orchestration and global vars with iterations

I created this sample job which has multiple flow to iterate components and iterations are set to 40 and 2

 

Question; can I trust that the globalVar which is set in subjob1 will be the same in subjob2? or could it be a different one caused by the number of concurrent iterations?

 

 

0683p000009LvN8.png

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi
You can set the key with the current iteration number, eg:
"Key"+((Integer)globalMap.get("tFlowToIterate_1_CURRENT_ITERATION"))
It ensures the global var is always the same in subjob1 and subjob2 even though you use concurrent iterations.

Regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Hi
You can set the key with the current iteration number, eg:
"Key"+((Integer)globalMap.get("tFlowToIterate_1_CURRENT_ITERATION"))
It ensures the global var is always the same in subjob1 and subjob2 even though you use concurrent iterations.

Regards
Shong