- 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.
- 34,850 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
08-26-2024 11:58 AM
You have to add the Run Script and X=setvalues by dragging them into the workflow. These are utilities under the core tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2020 04:07 PM
If there is a Servicenow CMDB Health expert in the Northern Virginia area that can talk me through this, I would really appreciate it. I know nothing about creating scripts. My email is rbuxmann@cox.net.
Regards.
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2020 07:44 AM
Did you figure it out? I am stuck on the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2020 04:19 PM
we kept the workflow requirement very minimal and showed a much more elaborate workflow in the demo. You will need the first Run script activity to capture the orphan rule number into scratchpad, and then the set value activity to write the text plus the orphan task number back to the description field of the orphan task number when you perform the remediation. The concepts are the same as in the video but the tables and fields are different.
In the workflow properties, you need to reference the orphan_ci_remediation table. This will make this workflow available as an option when you build the remediation rule.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2020 12:21 PM
Hi Glenn
Thanks for the response. I tried to create a small WF with 1 activity "run script" to get the task number [ workflow.scratchpad.number = current.orphan_ci_remediation.number; ] and a set value [ Workflow launched for task number ${workflow.scratchpad.number} ] . This did not work for me.
I am wondering one more thing, as the asked CI in the simulator task ( AUS01-EXCH ) in not available in instance.
Please guide.
Thanks
Amit