RE: Set a timeout on a virtual field call? Daniel W Heichel 3.Dec.15 09:27 PM Lotus Notes DECS DECS - All ReleasesAll Platforms
Unfortunately, on the Domino side, we're a bit limited in what we can do here. Our options for recovery would include setting a maximum runtime for the activity, to cut it off if it runs too long. That's not useful here, as virtual activites are meant to run for long periods. And regardless, it isn't available in DECS. (DECS is the free, limited integration option that comes with Domino; those sort of advanced options would be available in IBM Enterprise Integrator only.)
Usually, a connection timeout or other cancellation happens externally to LEI or DECS. The event is passed back to DECS/LEI, who report it in the log and then cancel the activity. There is no direct, native method that I'm aware of that can fail out the connection from the Domino application end, based on specific output from the back-end.
Posting an advisement on the webpage would require some custom application development work. I assume the Domino database that you're virtualizing data SAP -> Notes is enabled for the web, this being what you mean by the webpage. If there's a problem with the connection, a virtualized field will either be blank, or - if you set the option to leave realtime fields in the document - contain the last (potentially stale) value it received. It might be possible to monitor a test field to see if it contains data (thus determining if the activity is running), and if it is not, to print a preset message. But that would be up to you to develop.
Since this is primarily a problem on the SAP end - DECS happily runs along with a successful connection, returning what it's given, while SAP simply fails to return a useful value - I would advise looking for a solution within SAP. We need the back-end to drop the connection if it's in an error state, and that's not something we can do from the front end.