Hoppa till huvudinnehållet

Execute workflow via URL

Kommentarer

5 kommentarer

  • Permanently deleted user

    Hi Kyung,

    There is a runWorkflow url parameter for the Silverlight Viewer that you can use to run a workflow when the viewer launches. Alternatively, you can run the workflow directly from the rest endpoint of the site without having to relaunch the viewer. It should be located somewhere similar to: (http://picard.latitudegeo.com/Geocortex/Essentials/REST/sites/Charlotte/workflows/printwf/run) http://<server>/Geocortex/Essentials/REST/sites/<siteName>/workflows/<workflowName>/run

    Is this what you mean?

    -Victoria

    0
  • Permanently deleted user

    Hi Victoria,

    Thank you for responding to my post.  Yes, you are on the right track, but i would need to pass in the parameters.

    For example, i have a workflow that takes in a parcel number and when the 'search' button is clicked, it selects and zooms to the parcel.  How can i do that via URL? 

    Just like the 'attributesearch' parameter, is there such a thing as:

    http://<server>/Geocortex/Essentials/REST/sites/<siteName>/workflows/<workflowName>/run/attributesearch=parcel,pid,023456789

    Thanks.

    0
  • Permanently deleted user

    Hi Kyung

    Were You able to make this work? I've run into the same kind of problem.

    Thanks

    Rene

    0
  • Permanently deleted user

    no, i have not.

    I guess there's no way to do this?

    0
  • Permanently deleted user

    You can add the values you want to pass as arguments instead of variables in the workflow, and then set them with default values in the Properties of the workflow when you add it to the site in Rest Manager. Once you have the input arguments set up, you can launch the viewer using the syntax

    http://<serverName>/SilverlightViewer/Viewer.html?Viewer=<ViewerName>&run=<workflowID>&<argumentName>=<argumentValue>

    If you want to run the workflow alone without relaunching the viewer, you can supply the arguments in the url when it is run directly from the rest endpoint, but it is a bit messier, as it's passing json.

    It would look something like this:

    http://<server>/Geocortex/Essentials/REST/sites/<SiteName>/workflows/<workflowID>/run?f=json&inargs=[{"isRequired":false,"name":"<argumentName>","typeName":"System.String,%20mscorlib","runtimeTypeName":"System.String,%20mscorlib","value":"<argumentValue>"}]&ts=634858931511444005&v=3.0#

    -Victoria

    0

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