self hosted workflow 5 does't work in GMAF ?
I am trying to get workflow5 work in GMAF android but got stuck. My workflows are hosted as .json files on my own server,
They work fine if I open them in a desktop browser, but won't work in GMAF on an android device (online mode or offline mode, none works)
The only clue I got is when being switched to a offline map, it throws some error during syncing :
Error downloading workflow 'http://<myserver>/Html5Viewer_2_10_1/wf5/test.txt'. Unable to load http://<myserver>/Html5Viewer_2_10_1/wf5/test.txt status: 0
Error downloading workflow 'http://<myserver>/Html5Viewer_2_10_1/wf5/workflow1.json'. Unable to load http://<myserver>/Html5Viewer_2_10_1/wf5/workflow1.json status: 0
workflow1.json is the file I put on the server, also test.txt ( I changed the extension for testing) . The URL is accessible in my environment. And in fact it works if I use a desktop browser.
Any suggestions?
-
Hello Zhijie,
Yes, WF5 offline is supported by GMAF and has been tested. Make sure that all of the activities used in your workflow are supported offline based on the documentation and/or by changing the Deployment settings for the workflow.
Can you check the GMAF console logs and the GVH logs for any other errors which might indicate where the error is occurring.
Thanks, Stefan
0 -
Thanks Stefan,
my workflow only contains an alert
it fails silently in GMAF windows (running on my laptop), with f12 console there's nothing (and no network traffic)
how to see the logs on mobile GMAF (android)?
The only error I can see is when 'sync offline data', it throws:
Error downloading workflow 'http://<myserver>/wf5/workflow1.json'. Unable to load http://<myserver>/wf5/workflow1.json status: 0
this url is accessible.
what does this status 0 mean?
0 -
when 'sync offline data' error happens, in the console it complains about
no 'Access-control-allow-origin' , i have attached a screenshot.
many thanks Stefan.
0 -
Hello Zhijie,
I believe that the error you are seeing is because cross-origin resource sharing (CORS) is missing. Can you try following the steps outlined here and let me know if this resolves your issues?
https://docs.geocortex.com/essentials/4.9/install-help/Default.htm#ge/install/cors.htm
Thanks, Stefan
0 -
Really appreciate your help Stefan, the error I saw could be caused by some network restriction on my laptop. I have got the IT people fixed the network. After they changed something on my account(or on the pc), now that error is gone (no error I can see in console or network or alert when sync offline Data).
However the hosted workflow still don't work. it works in desktop browser, but in the same workstation with GMAF (windows), it fails silently when you click on the menu item.
Is there a way to print more logs (for example with a js patch) ? I just found the geocortex server machine doesn't have internet access. But I think it should not matter?
I have opened a case :00105366
In fact what we really need is GMAF on android (mobile device) but it does' t work that's why i am trying GMAF windows. My client has quite restricted network ( you can think like we don't have internet, everything is in local network) , that is one of the reason we need to host it locally.
0 -
No problem, thanks for letting me know. I'll try to assist in the case.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare