Hi @tinaafitz,
Thanks for the reply, I have done as specified but the request gets approved and starts processing before it even runs this state machine. By the time the Validate method runs the vm already started retirement. We are on hammer 7 by the way so not sure if that makes a difference. I even see these messages in the logs but the process still continues.
[----] I, [2020-10-21T13:51:34.518313 #12227:41362e0] INFO – : Checking for auto_approval
[----] I, [2020-10-21T13:51:34.519579 #12227:41362e0] INFO – : Not Auto-Approved
[----] I, [2020-10-21T13:51:34.545027 #12227:3aaf48] INFO – : <AEMethod [/Broadcom/Service/Retirement/StateMachines/ServiceRetirementRequestApproval/approve_request]> Ending
[----] E, [2020-10-21T13:51:34.545514 #12227:3aaf48] ERROR – : State= running on_entry raised exception:
[----] W, [2020-10-21T13:51:34.545615 #12227:3aaf48] WARN – : Error in State=[ApproveRequest]
[----] I, [2020-10-21T13:51:34.545735 #12227:3aaf48] INFO – : In State=[ApproveRequest], invoking [on_error] method=[pending_request]