RE: How to capture the script output at Job level in Diyotta
Diyotta supports the script output functionality and below is the approach
I have file watcher command task, a script which checks for the number of files present in a folder. If the file count is greater than 0 it runs the subsequent jobs. If the file count is less than 0 then it doesn’t run the subsequent jobs.
At the Joblevel we need include the command output Runtimestatistics in the link condition as shown below
Scenario1: When Command out is greater than 0
The File Watcher gave an output of 18 as shown below and it checks the link condition it is executing the MoveFileToLanding job.
Scenario2: When my command out is less than 0
This time File Watcher gave an output of 0 and once it checks the link condition to MoveFileToLanding job moves to DEFERRED state.
As the link condition is not satisfied as shown below.