- 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,330 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
03-30-2021 03:19 PM
The WF should not automatically trigger unless when you created it, you set the "If condition matches" field to something that is automatically triggering it. It should be set to None and then only by clicking the Remediate button will it execute.
Regarding the completion, I would open a case from the top right on Now Learning explain your situation. NL is administered by a different internal group than the content. Thanks and good job on completing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2021 11:06 AM
Hello Community!
Thank you very much for you input!!! CreativeThinker posted a response to Martin’s post. He or she pointed out the need to include the word “number” in the Short Description. Once I made that change and verified the other configurations, I finally received 100%!!! Thank you very much CreativeThinker!
However, I still do not understand how during my troubleshooting I could receive the proper results after having purposefully blown away my Remediation Rule! That should have never worked! And, I don’t understand how after changing my Workflow’s configuration to “None”, deleting the Orphan Task, and running the Health Jobs again, that the Short Description was still immediately populated. Maybe nothing actually changed on the backend.
Meanwhile, I have not received an update on my incident yet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2021 09:11 AM
I have been struggling with this and many of the steps. Most of my experience with ServiceNow is as a user for incident management. I work in a systems group...we had the ServiceNow fundamentals class but there seems to be a significant leap in knowledge required to complete the CMDB fundamentals. A lot of this was just not being familiar with where to find the necessary tables and not having much experience at that level. We are preparing to work on a CMDB integration project with our internal ServiceNow team. What is a good way to build this intermediate knowledge?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2021 12:21 PM
I was able to successfully complete this step by doing the following:
Create the workflow and name it as the instructions tell you, then configure the following steps:
1. Begin
2. Run Script. The script should look like this:
var orphan = new GlideRecord ('orphan_ci_remediation');
orphan.initialize();
orphan.insert();
3. Set Value. Short description 'Workflow launched for current.number'
4. End
Do that for the workflow and follow the rest of the instructions and that should take care of it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2021 09:33 AM
Hi All,
Can any one provide step by step process. So that, it will help.
Regards,
Suresh N.