How do I access the results of a Geoprocessing (synchronous) task
I have a geoprocessing task and I am unable to access the result.
How do I do it, there is async sample but no sync sample (That I can find)......
-
Hi Robert,
There's an Async one on the sample site's list of workflows here:
https://communities.geocortex.com/workflow/s/article/GW5-Workflows-Sample-Site
I might recommend changing the Convert To JSON activity in that workflow to use =$geoprocessing2.results
instead to make more sense though.
Or you could use a log activity on
=$geoprocessing2
to get a bigger picture look at all of the outputs you have access to
0 -
Hi Robert,
Somehow I managed to process that backwards from how you wrote it. Sorry!
For a synchronous example, go to File > New in workflow designer, and search for 'message' to get the message in a bottle sample. There's a Geoprocessing activity inside the Try Catch activity there.
For any Geoprocessing activity, I'd still recommend throwing the output into a log so that you can take a good look at them and understand what's there.
Hope that helps!
0 -
Hi That helps a lot but now I can see that I am getting the result expected. How do I get it exposed?
Also, I am hoping to return geometries from the same service, text first and I'll be very happy.
0 -
I have the same question - my output of the geoprocessing activity is a file - how do I prompt the opening of the file for the end user?
1
Please sign in to leave a comment.
Comments
4 comments