Hi,
I want to show a message in a window if an error occures in a workflow plugin. Is there a way to do that?
I’ve already tried following things in PlanetPress Workflow:
I create a html file and store it on my local drive. In the next step, I open the HTML file via VBScript (using “InternetExplorer.Application”). It works in debug mode, but in live mode the Internet Explorer does not open.
Dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True
objIE.Navigate "C:\source\ERROR.html"
Next I create a batch file to open my local html file (instead of using the vbscript in Workflow).
start iexplore.exe C:\source\ERROR.html
In Workflow I use the plugin “External Program” to execute the batch file. It works in debug mode but in live mode the Internet Explorer does not open.
Regards,
Thomas
It’s because when you’re running live, it’s running as the service. So the service would be attempting to open that popup in it’s own instance, not in yours.
There isn’t a great way to do this, really. Windows likes to keep things separated (and for good reason).
Generally, the recommended way to alert someone to an issue in Workflow is to catch the error through an error handling process and email them with the pertinent information.
Thank you for your reply. I was aware about this windows “security feature” but I had hoped that someone else already had found a workaround solution.
In my case I have to inform the operator on the local machine (so email won`t do the the trick).
Do you know a way to send the error message via http request to another system out of PlanetPress Workflow?
You can send HTTP requests to another machine using the HTTP Client Input task. The normal idea is that you send a request to a server somewhere and the incoming response becomes your data file. But you could use it to simply hit a URL that then triggers something else to happen.
1 Like