I am really struggling with the CMDB Health Simulator Configure Remediation - Task 13. I do not understand how to create the workflow to be executed from an Orphan Task.

Bux
Tera Contributor

I am trying to complete the CMDB Fundamentals On Demand course.  The last task on the CMDB Simulator is to:

Create, configure, and publish a workflow using the following information:

*workflow name is "Remediate Orphan WF"

*workflow can be executed from an orphan task

*workflow, when executed, writes to the short description field of the orphan task the following: Workflow launched for task number [actual task number of orphan rule].

I have created a workflow and named it "Remediate Orphan WF".  I have 2 boxes on the canvas, Begin and End.  I do not understand which boxes I need to add to the canvas or how this workflow will even begin.  Do I need to create some kind of scripts?  The video lesson on the CMDB Fundamental On Demand was over my head.  It started off with the canvas already created and was for remediating Stale CIs.  I've tried reading the How to create Workflows and I keep going down rabbit holes.  It says drag the activity to the canvas.  I don't see any activity that will Execute from a task or write some task number into the Short Description field on the Orphan page.  I'm not a Dev/Ops guy, I'm a project manager who is taking this on demand class while I've been off work.  I would really like to finish this last task and be done with this.  

My email address is rbuxmann@cox.net.  I would really appreciate if someone can talk me through this please.

Regards.

Rob Buxmann

 

1 ACCEPTED SOLUTION

glenn_pinto
ServiceNow Employee
ServiceNow Employee

For the script you don't need to refer to orphan_ci_remediation as current translates to the current table from the record making the initial call to the wf. In the demo, we had to dot walk to the CI record's ip address from the incident table and thus we had a slightly different syntax. The following should suffice.

workflow.scratchpad.number = current.number; 

 

We provided AUS01-EXCH as a sample record that you can test with which should be there, but if you can't locate it, run the test from any other orphan task record and you should get the same result. 

View the demo video when it explains the set values activity on the proper syntax to write literal text plus the specific orphan number back to the orphan task record.

Hope this helps.

 

 

View solution in original post

119 REPLIES 119

Thanks Glenn. It worked for me like a charm!

Mansor2
Tera Contributor

Great!! 

I am striking out in a very successful way.  I've listened to that demo video more times than should be necessary.  I created a workflow initially using 4 steps (begin, run script, set value, end) and then again with only 3 steps (begin, run script, end) based on the demo video remark regarding the 'set values' doesn't work (?!?), and adjusted it multiple times based on the blog feedback:

1) where the 'run script' stores the current number and the text in short description field OR

2) where the 'run script' stores the current number and the text in the scratchpad

 

Neither the 4-step nor the 3-step approach is working.  Sadly, none of the links in the remediation capabilities pdf go to documentation regarding the identified topics.

Thanks to posts by Adam Rosenbaum and Paul Zimmerman, I was able to get my short description to populate.

 

Are all simulator tasks supposed to make the student feel as though a stiff drink and a cigarette are necessary once they've successfully validated? 😬  Task 14 was ridiculous for those of us who may have been coders (30 years ago) and would have little to no reason to require that skill set today...

Spoke too soon...while the short description is populating (right after the execution of the correctness job), I follow through with running the workflow in the remediation step (short description remains on the orphan task).  When I validate the simulator task, it still fails.

 

I've been at this single simulator task for nearly 8 hours - no wonder the course says it takes 21+ hours!