- 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,347 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
09-29-2024 02:06 AM - edited 09-29-2024 02:08 AM
The key is to select create task for health metric = orphan not correctness
generated task would look like below url
Tasks | ServiceNow (service-now.com)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 03:12 PM
Did you create a new workflow with the requirements from the instructions? Did you publish it?
Did you create a new Remediation Rule with the requirements from the instructions? Does it have the correct name? Is it the correct Task type? Is it connected to the Workflow you created?
From 'Configuration > Health Preferences' did you select 'Health Metrics' then 'Orphan' from the metric dropdown, and then set 'Create Task' to 'on'?
Did you click on 'Orphan CIs' from the dashboard and locate the orphan task 'AUS01-EXCH'? Did you run remediation on the task? View the Remediate Capabilities section of this Now Learning course for more assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 12:13 AM
Hi there,
I have did it following way (and it has worked fine):
Design the Workflow as:
- Drag a Set Values activity into the workflow between start and end.
- select in Field: "Short description"
- set in Value: Workflow launched for task number ${current.number}
--> ${current.number} dynamically fetches the task number
Check it is properly connected (Start activity to the Set Values activity and then to an End activity).
Publish the Workflow from the workflow menu to make it active.
Hope it helps... 😉
Slavo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 07:59 AM
Thank you!! I had tried everything in this thread and nothing worked.
I had dragged the activites into the workflow, filled them out and everything looked right. But when I saw your screenshot I realized that I didn't have an arrow to each box, just one long line with an arrow to the end block. I deleted the arrow and connected each box manually and then the remediation suddenly worked! I guess they were never connected.. Maybe this can help someone else stuck on the same section 🙂
Without arrows:
With arrows (correct):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 09:18 AM
We are in the process of trying to consolidate queries/comments/help on the CMDB Health Simulator to the following article. Please post any questions or comments to the following article going forward. Thanks you.