How to capture the script output at Job level in Diyotta

I need script  output to validate the subsequent stages should run or not in job flow.

 

Beginner Asked on September 19, 2019 in Diyotta Studio.
Add Comment
1 Answer(s)

Hi Wiliam,

 

Diyotta supports the script output  functionality and below is the approach

Use case:

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

RE: How to capture the script output at Job level in Diyotta

 

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.

RE: How to capture the script output at Job level in Diyotta

 

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.

RE: How to capture the script output at Job level in Diyotta

 

Thanks

Arza Naveen

Diyotta Support

 

Expert Answered on September 19, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.