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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Parallel execution with iterate (Tparallelize with Tflowtoiterate)

I am trying to execute a bunch of subjobs in parallel, but context values need to be passed to the subjobs via a flowtoiterate component.
However, tflowtoiterate does not allow an 'iterate' to be linked to the tparallelize component. I can connect the tflowtoiterate directly to the subjobs however then the jobs execute in parallel and I am not able to use the Synchronize option of the tparallelize component. Can anyone suggest a way to go about this requirement. (Parallel execution for an iterative list of contexts passed from a tflowtoiterate component)

<a href=" http://tinypic.com?ref=54i00p" target="_blank"><img src=" http://i48.tinypic.com/54i00p.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
also, on a side note..the contexts in the tflowtoiterate do not get the values I have assigned from the previous component. I don't know why that is.
Labels (2)
1 Solution

Accepted Solutions
alevy
Specialist
Specialist

Connect tFlowToIterate to tJava as a place-holder then OnComponentOK to tParallelize.

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Don't know why the image wont upload. Hopefully people are able to see from the below.
<a href="http://tinypic.com?ref=54i00p" target="_blank"><img src="http://i48.tinypic.com/54i00p.jpg" border="0" alt="Image and video hosting by TinyPic"></a>
http://tinypic.com/r/54i00p/6
alevy
Specialist
Specialist

Connect tFlowToIterate to tJava as a place-holder then OnComponentOK to tParallelize.
Anonymous
Not applicable
Author

Thanks Alevy-that works.
However, I am still trying to understand why the tflowtoiterate does not assign values to the contexts from the table input. Is there something else that I need to do for that?

http://i48.tinypic.com/3vvi8.jpg
alevy
Specialist
Specialist

tFlowToIterate places values on the globalMap only i.e. with your config, you are creating variables that can be retrieved using syntax like (Integer)globalMap.get("context.JIVE_MULTI_TENANT_CONTROL_TenantID").
If you want to store them in the context instead, you will have to do that manually in the tJava or tJavaRow (e.g. context.JIVE_MULTI_TENANT_CONTROL_TenantID = row3.TENANTID 0683p000009MA9p.png
Anonymous
Not applicable
Author

Yes I was assigning values to the contexts using the tjavarow component. But your explanation clarifies the way the tflowtoiterate is supposed to work.
Thanks!
alevy
Specialist
Specialist

There's a new Jira regarding this scenarion ( tParalellize with iteration, doesn't synchronize correctly) that I thought should be brought to your attention. Of course, the timing is suspiciously close so you might have raised the support ticket that led to the Jira in the first place... 0683p000009MACn.png