Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
tPrejob and tPostjob are great when you need execute given tasks, before and after your job. Unlike other components, these components do not process data and cannot be configured. They always execute, even if the main job fails, making them great for tasks that need to be completed even if the job is not successful.
Some scenarios in which you might need to use tPrejob include:
On the other hand, you might use tPostjob to:
These components are added to jobs the same way any other components are, simply click and drag them from the palette or search for them by clicking on the canvas. All you need to do after that is connect them to your subjob using an “OnComponentOk” connection. Bellow, is an example of tPrejob and tPostjob being utilized.
Hello,
Thanks for sharing it with us.
Best regards
Sabrina
Thanks for the post/information.
Just to be absolutely clear, the screen shot shown is BEFORE the OnComponentOk connections to the subjob have been added? The subjob being the employee to tMap to tFileOutputDelimited?
Or is the screen shot the "final" product?
Hello CygnusX1,
the screenshot shows the final job design. There is no connection from PreJob to the main subjob or from there to PostJob. The "employee" component has a green background, that means it is the start component of the main subjob (executed after PreJob and before PostJob).
Best regards,
Thomas
A description of the error. This variable is cleared upon entering a step, and is set when an error occurs during step operation. This variable can only be used in the next step condition. The ErrorDescription is also saved in the C.sys.LastErrorDescription and this value is not cleared. For more information about this variable and embarkdaily embarkup
wow! looks great, thank you for sharing!
I've found just this http://umashanthan.blogspot.com/2016/01/when-or-how-to-use-tprejob-and-tpostjob.htmllink and it was cool to see one more example of this. for me, as a freelance writer working on different educational projects that's really important
wow! looks great, thank you for sharing!
I've found just this http://umashanthan.blogspot.com/2016/01/when-or-how-to-use-tprejob-and-tpostjob.htmllink and it was cool to see one more example of this. for me, as a freelance writer working on different educational projects that's really important
wow! looks great, thank you for sharing!
I've found just this http://umashanthan.blogspot.com/2016/01/when-or-how-to-use-tprejob-and-tpostjob.html and it was cool to see one more example of this. for me, as a freelance writer working on different educational projects that's really important
If you want to use these components, I think it is necessary to check the state of the prejob before starting main. And this is especially necessary in the case of a base extraction in the middle of a job that lasts one hour.
The control can be simple, something like this for example: