The current process is to select one document at a time and change the WRE workflow states.
What we need is to be able to select 20 drawings for example and change state.
Ideally this would be done using the api and iterate through each document.
These two functions look promising: aaOApi_CallInstanceRule and aaApi_WREDoExecute
Is there a way to do this?
You can use aaApi_SetDocumentState to set the state. You can also use aaApi_ChangeDocumentToNextState and aaApi_ChangeDocumentToPrevState to traverse the workflow states.
WRE enabled so Manual change state not allowed. I updated my question to say WRE.