amarnathkothapalli_6791

List of All tasks along with Status in a Workflow

Discussion created by amarnathkothapalli_6791 on Feb 24, 2017
Latest reply on Feb 24, 2017 by amarnathkothapalli_6791
Hi All

I am looking for a way to find the list of all tasks (I have Jobs and Jobp in a workflow) and their statuses so that I can send a consolidated mail with the list of status of what is successful and what all failed

I am not able to come-up with a logic of how to do that. I have around 30-40 parallel jobs. Few of them complete successfully and few of them err out. I would like to have a job at the end which can collect all the statuses of all the jobs

The way I am doing right now is creating two arrays. One to hold the Job Name, Other to hold the Job Status. Use a static index for each job in that workflow and at the end loop through and publish the statuses in an e-mail
This is very static and when I create / delete a new job, I would have to reassign the indexes again

Is there a way that I can get the list of all tasks in a parent workflow along with statuses using scripting / from backed

Outcomes