Hoppa till huvudinnehållet

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

Kommentarer

3 kommentarer

  • Alisa Lindley

    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
  • Kelly St. John

    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
  • Alisa Lindley

    Thanks Kelly St. John, happy to help!

    0

Du måste logga in om du vill lämna en kommentar.