Using Flow Designer to update CI's

Darlene York
Tera Contributor

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.

 

 

1 ACCEPTED SOLUTION

Erik Nelson
Kilo Sage

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

View solution in original post

13 REPLIES 13

Thank you so much.  Your right that inst a value in there, Ive been trying to figure out why.  Ill check the business rule.

Thank you again for your help.  

I got the runtime value fixed.  Now I am getting a different error "Error occured while updateing record:null.

How are you pulling in the information for the update? I set it up directly pulling the value from the "old_ci" variable entry which got me to the Business Rule.

Thats how Im doing it. 

DarleneYork_0-1681313018777.png

 

That's how I set it as well. Did you update your overall properties to Developer Trace? It's the only other thing I can think of that might be a difference in how it's displaying the error. That being said, the Business Rule and its associated Script Include, overall, is what will keep the CI from being updated by the Flow.