First up, you will need to know how to read a file from the Document Repository.
Set status = DOC[status.txt]
Where status is a String variable and status.txt has a status word in it like open, closed, weather, fire, etc.
Then if you do a Switch step on this variable, you can make decisions based on it's value.
Second, you need to know how to upload Documents in to the Repository via a script. I assume you know how to do it via the web interface, which is how you'll validate that first step.
Ok so to upload a document, you need a couple of things.
User username USER[youruccxadmin]
String password "yourpassword"
String filename "status.txt"
In the Authenticate User step, use the User and the String for password. It can be any account with access.
In the Upload Document step, use the filename String variable to name your file, the language can be simply L for default language folder, and the Document itself will be a Document Literal like this: TEXT[open] or TEXT[closed]
If you can get those two things working, you should be pretty far along in getting this working .