Orphan Remediation workflows??

David Haught
Tera Contributor

Hello all!

 

working on my Orphan CI's and when i get to remediation it asks for a workflow. I dont have any and dont have the slightest idea on what a orphan remediation workflow would look like. Any help would be appreciated!

 

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @David Haught 

 

Define your orphan condition in the class manager and enable task creation from health preferences, run the health job to create those tasks. I would suggest to run the health job and validate your results before turning on the task creation from heath preference. 

https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/product/configuration-manag... 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

NehaSNOW
Tera Guru

Hi @David Haught 

In the below workflow I am setting the Short Description of Orphan CI task (in the orphan_ci_remediation table) to Workflow launched for task number ${current.number}.  You can also delete the Orphan CI Task from Workflow.

 

NehaSNOW_0-1739389559846.png

 

NehaSNOW_2-1739389669019.png

 

NehaSNOW_3-1739389786262.png

 

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Neha Pateria

 

 

but is this a workflow to help resolve the orphan? it would look like this is a workflow to just label the orphan as an orphan?

@David Haught I have designed the below solution which is working fine for me.

 

1) The workflow which I have suggested in the above response, set the 'Short description' as "Workflow launched for Orphan CI deletion" in the Set Values.

 

NehaSNOW_0-1740124165074.png

 

2) The Flow designer is deleting the Orphan CI from the custom CI Class: -

NehaSNOW_1-1740124217296.pngNehaSNOW_2-1740124232415.pngNehaSNOW_3-1740124257600.png

 

The logic will work automatically once the Remediate button is clicked on the Orphan Tasks. This will also set the Status of the Orphan Task as "Closed Complete".

 

NehaSNOW_4-1740124341629.png

 

If my response has helped you hit "Helpful" button and if your concern is solved do mark my response as "Correct".

 

Thanks & Regards
Neha Pateria