We have an iSeries application that will show an error message on the bottom of the screen if the item being selected has no additional information (instructions).
The success output currently looks fine:
Date: Wed, 15 Nov 2023 22:58:31 GMT
Content-Type: application/json;charset=utf-8
Rocket-Status-Success: true
Rocket-Status-ReturnCode: 0
Content-Length: 48
{"Result":{"instruction":"","RESULT":"SUCCESS"}}
However, if it is not found, we would like to return a non-successful result and, ideally, the reason.
I have tried using the Set Status Code action, but it seems to have no effect in the Execute Stage (or I am using it incorrectly).
I would be happy to execute a Javascript function, but I don't see anything in hostSession or microflowContext that seems to have what I would need. Is there documentation you could point me toward on hostSession and microflowContext, as well as other JavaScript capabilities? I don't find references to them in the scripting documentation that I've found. Also, if there were a set of example javascript files that did a few other fancy things, that would be an excellent resource you could point me to as well.
------------------------------
Norman Kabir
Developer
Gebbers Farms
Brewster WA US
------------------------------







