OnSubjobOk VS OnComponentOk

One Star

OnSubjobOk VS OnComponentOk

Can you explain me the difference between the trigger OnSubjobOk and OnComponentOk ?
Reading the official documentation I see that we can use the trigger OnSubjobOk only for the first component of the process. Why ?
Thx.
Not applicable

Re: OnSubjobOk VS OnComponentOk

Greetings,
there's a difference between them when you connect a component like e.g. tFileList with two other rows of components and you want it to finish the first row before continuing with the second one.
For example I designed a job where I search for a file and then do some actions and finally write to a database. After that I want to do some other operations with another file and so on. So I connected tFileList to it's own row (some actions and then write to database) using OnComponentOk and to the next tFileList using OnSubjobOk.
Hope that makes the difference a bit comprehensible.
One Star

Re: OnSubjobOk VS OnComponentOk

Hi
I have a requirement to develop a joblet i need to check the file existence and if existed have to compare the file against source file data if it matches i have to kill the job.
If the file does not exist i have to come out from the joblet.
Please assist me.
One Star

Re: OnSubjobOk VS OnComponentOk

I think you need to make a new post or your problem won't be found.