Hi,
I am working on an integration currently and am struggling to remove the middleware I currently use.
My current setup involves:
- The user in Maximo being sent to an external website via script service.openURL()
- The user performs actions on the external website
- This results in the external site POSTing an XML document to a URL
- This URL is being listened to by Node-Red
- Node-Red processes the XML and posts required data in via the MIF
- Node-Red then send a 303 redirect URL to the browser and forwards the user to a specific record in Maximo.
I am looking to remove the Node-Red section from this and handle it entirely within script.
I have changed the URL the HTTP POST is sent to to https://MAXIMOHOST/maximo/oslc/script/scriptname
My script is processing the XML properly, but the user is being left on a blank screen. How do I direct the browser to a URL?
I have tried the service.openURL() but it does not do anything. I presume as it is not running interactively.
I want to try sending a status code of 303 back to the browser with a location header but I cannot find how to send this.
Does anyone know how I can achieve this?
Regards
Dave S