- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 03:01 PM
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
Solved! Go to Solution.
- 35,191 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 04:20 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2020 07:04 PM
Hello TC, the script you need to create is this:
The following should suffice.
workflow.scratchpad.number = current.number
If you look for a reply from Glenn.Pinto in this thread, you will see he added this scrip. I had contacted a coworker who gave me the script info prior to Glenn sending this script. Hope this helps you.
Regards.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2020 07:10 AM
Hi All,
I have seen this thread during my CMDB Course Completion, and the tip around this is the following:
1- Orphan task are created automatically after Correctness Job has been performed
2- Create a "Set Variable" with short_description equals to the text mentioned in the lab
3- In Run Script Step, configure the following line of code:
current.short_description.setValue(current.short_description + ' ' + current.number);
My Best Regards,
Rodrigo Donnangelo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2020 04:32 AM
Thanks Rodrigo, above information was really helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2022 03:51 PM
Thank you Rodrigo!
That was the missing line of code I was not able to figure out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2020 02:29 AM
Hi all,
it is sufficient to add a single "Set Values" activity to the Remediate Orphan workflow.
In the set values activity set the field "short description" to the following:
Workflow launched for task ${current.number}
Worked for me
Regards
Martin