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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
jimbo20814
Creator
Creator

Conditional Processing

All, what would be the best way to accomplish this?

 

First, I need to check error logs at database table. I was going to store the count in context variable. If the count is > 0, job processing should not occur. How can I conditionally control the execution of a job according to value from a context variable?

 

Labels (2)
3 Replies
TRF
Champion II
Champion II

Connect a tJava and a tRunJob with a "if" link.
Let the tJava as is.
Enter the desired condition for the "if" link like this: context.counter == 0
This way tRunJob will start only if context.counter is equal to 0.
jimbo20814
Creator
Creator
Author

Thanks TRF. But I'm wondering if I even need context to hold the counter. Can the If link come directly from the tDBInput? If so what would the code look like? The tDBInput only has one integer output, ErrorCount. I tried simply ErrorCount == 0 inside the If, but it says ErrorCount cannot be resolved to a variable.

 

0683p000009M9PY.png

TRF
Champion II
Champion II

rowx.ErrorCount == 0