on 2021 Dec 17 6:03 PM
Global Variable: $G_TIME_LOOP , integer, initial value = 1
Script Before dataflow:
print('Loop number = ' || $G_TIME_LOOP);
Script After:
IF
($G_TIME_LOOP = 10)
begin
print('Loop finish number = ' || $G_TIME_LOOP);
raise_exception_ext('JOB FINISH', 0);
end
else
begin
$G_TIME_LOOP = $G_TIME_LOOP+1;
end;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi nikhaenko,
It would be really helpful if you could help me with this scenario. I am trying to achieve the same by following your syntax however I am not getting the results as expected. The process is running but not getting into the loop. It ends without even executing the dataflow once.
Thanks
Shubham
Hi shubham54498,
I cannot see any function provided that is capable of re-executing the task in a postload script.
The functions are listed here.
What you may try is using the exec() function to execute a command that triggers a task execution via runTask SOAP web service function. But somebody else here in this Community might have a better and sophisticated best practice for that.
Regards,
Bence
Thankyou Alexey that eased my work to quite a bit. I am able to optimise not one but many tasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.