- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 12:06 PM
Hello,
I am trying to use flow designer to update the Life Cycle Stage and Life Cycle Stage Status when a server is being replaced. I'm am using Update record and the variable is old_ci that is mapped to the configuration items.
Action - Update Record
Get Catalog Variable - old_ci
server [cmdb_ci_server]
Life Cycle Stage - End of Life
Life Cycle Stage Status - Retired.
Its not working, nothing is updating.
Any help would be greatly appricated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 03:13 PM
Hi Darlene,
I just tried this out in my PDI and it looks like it's failing to update due to the Business Rule "Validate lifecycle combination" on the cmdb_ci table. It runs when either the Life Cycle Stage or Life Cycle Stage Status is updated. This calls the Script Include "LifeCycleUtil" which handles making sure it's a "valid" combination of entries for the field.
If you haven't already, I'd suggest enabling Flow Reporting through Flow Designer Properties to at least "Flows Actions and Steps" as that will aid in displaying where errors might occur.
Erik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 03:13 PM
Hi Darlene,
I just tried this out in my PDI and it looks like it's failing to update due to the Business Rule "Validate lifecycle combination" on the cmdb_ci table. It runs when either the Life Cycle Stage or Life Cycle Stage Status is updated. This calls the Script Include "LifeCycleUtil" which handles making sure it's a "valid" combination of entries for the field.
If you haven't already, I'd suggest enabling Flow Reporting through Flow Designer Properties to at least "Flows Actions and Steps" as that will aid in displaying where errors might occur.
Erik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 03:37 AM
Good morning Erik,
Thank you so much! I have been scratching my head for a few days. I appreciate your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 04:33 AM
When I go to flow reporting and switch from trace to flows and actions I just get a error that says Value of field record is not a GlideRecord. I dont get the detail your showing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2023 07:45 AM
I could be incorrect, but I don't know that it will change info from previously run Flows. I've got my PDI set to "Developer Trace" from the Flow Designer Properties, but I don't know that it makes a difference. It also looks like (unless you blanked it out) there isn't a value being pulled into your Runtime Value for the record. Depending on how you're getting to the data, that would be a precursor to the Business Rule not running is that it isn't pulling in the record to update.