Apologies. I didn't want to provide a pile of information on the front end in the event it wasn't helpful.
I am using the Node-RED that is embedded in an Opto22 groov RIO device. The goal is to generate work orders as the result of a process condition (analog or digital) on the RIO without generating multiples WOs before the first one is complete.
Using an http request, the UpKeep API returns fairly robust payload. Currently, I use a change block to remove everything but the 'id' of the generated work order. What I would like to do is to store this 'id' and check the 'status' of it before the flow would be allowed to create a new one. I am not sure the best way to store it.
"title": "Repair sink",
"description": "Sink broke yesterday",
The API enables me to retrieve a specific work order based on its 'id'. The syntax requires the 'id' append at end of the GET url. What I think would be easiest would be to check the status of the stored 'id' from above and then check to see if the status is 'closed'.
"title": "Replace the warp drive on the fusion reactor",
"description": "Warp drive has been malfunctioning, check the coils that generate the warp field.",
Not sure if I am explaining this very well.