How to configure Geocortex Viewer for HTML5 (4.14.2) instance to call a Workflow (either Designer 4.x workflow OR VertiGIS Studio 5.x workflow) with Point Geometry from Right Click Context Menu option
I am currently trying to configure an instance of a Geocortex Viewer for HTML5 (4.14.2 in our case) to properly call AND pass into that workflow (can be either a Geocortex Essentials 4.14.2 Workflow OR a VertiGIS Studio 5.30.1 Workflow as either xaml can be added as a Workflow into our Site/Viewer), the point geometry resulting from a context menu selection configured to run the Workflow (from right clicking on map).
I have tried and failed thus far trying the following techniques:
1) Building a VertiGIS Studio Workflow (5.30.1) utilizing the "Get Workflow Inputs" activity. That activity apparently should provide output usable in subsequent activities by referencing $getWorkflowInputs.inputs in the subsequent activity(s). However, trying to reference that object in subsequent activities by entering either $getWorkflowInputs.inputs.context OR $getWorkflowInputs.inputs["name"] hasn't worked for me. Perhaps I need help configuring the Map Context Menu item in Geocortex Essentials Manager in order to pass in the context object to the 5x workflow.
2) Building an Essentials Workflow (using Workflow Designer 4.14.2) and both trying to properly configure the context menu item to pass in arguments to the workflow and then reference those workflow input arguments in the workflow designer itself. Trying to configure the Menu Item to use the "RunWorkflowWithArguments" properly to do so has caused me trouble, with the UI always issuing a warning that I have provided invalid JSON in the CommandParameter field, despite me entering what I believe to be valid JSON.
I feel like I'm wandering around in the dark a bit on this, so any reliable help with either approach above would be greatly appreciated. (screenshots would be awesome!)
-
Hi Kelly,
The method using VertiGIS Studio Workflow requires the context to be passed as an argument. Please try configuring the Map Context Menu as such:
Command: RunWorkflowByUrlAndInputs
Command Parameter:
{
"url": "[workflow URL]",
"arg1": "{{context}}"
}*Replace [workflow URL] with the URL to the desired VertiGIS Studio Workflow item.
You can then access the coordinates that get passed through using the Get Workflow Inputs activity. A good way to check whether everything went through correctly would be to add a Log activity that checks the output of the Get Workflow Inputs activity. For example: =$getWorkflowInputs1.inputs.arg1
I am less familiar with how this would work with a XAML workflow, but I believe the argument for the Command Parameter would be similar. The invalid JSON error might be due to something as simple as missing the curly brackets or the quotation marks.




1 -
Thank you SO MUCH Alisa Lindley !! That was an excellent, informative, and helpful response which in turn helped me resolve my issues. I wasn't far off getting it to work, but just needed a little help filling in a couple of the functional dots.
The VertiGIS Studio 5x workflow ends up being fairly straightforward once you know exactly how to access the passed-in context object from the Geocortex Essentials Viewer, where the pointer to the workflow in that site is properly configured precisely as you specified in your helpful post.
Knowing how to properly verbosely log workflow activities to the browser's dev console was also instrumental.


0 -
Thanks Kelly St. John, happy to help!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare