Hoppa till huvudinnehållet

Run/Launch studio workflow from external hyperlink or direct from a browser?

Kommentarer

7 kommentarer

  • Zack Robison

    I haven't used launch links yet, but they're there and I think this is what they're for.

    You can also get the URL in a WF with the Get Browser Info activity, then parse the query string for whatever you like.  Slap that in a WF that runs on app initialize or map initialize and go from there.

    Side note: this post also made in 2023.  +1 for a date filter.

    1
  • Chad Bergeson

    I've had some success with Launch Link Workflows that do this.  Just create a simple worklfow then reference it from the "Launch Links Workflows" setting under services.  You can then get the URL to it from Deploy - Get Links.

    Also you don't necessarily have to parse the URL you can use GetWorkflowInputs.  After you've setup the launch link worklfow and gotten the URL it will have something like this on the end:

        &workflowParams={}

    In the curly braces you can have attribute/value pairs like this:

        &workflowParams={"Parcel_Number":"0101100001"}

    To get at that in your workflow you'd get the value like this:

        =$getWorkflowInputs1.inputs.Parcel_Number

     

    Hope this helps!

    -Chad

    2
  • Tyson Schoepflin

    Thanks for the suggestions!  Are launch link workflows launched silently?  I may not be configuring them correctly, but when running a launch link there are no log activities in the browser console which leads me to believe the workflow is not running.  If I add a button to the web viewer and press that the workflow does show log activities.

    My web viewer layout is bare bones,  one text component and one workflow component used as a target for the workflow.  I added the button later just to make sure the workflow would run at all.

    0
  • Chad Bergeson

    Morning Tyson Schoepflin,

    If you specifically put 'log' activities in the workflow to write messages out to the console it should work but there may be something else going on as I've just realized none of my deployed apps are logging activities to the console any longer.  I get messages in the console when I'm in the designer but not when accessing the app directly...

    Thanks,

    -Chad

    0
  • Chad Bergeson

    I just found out you can add "&debug=true" to your URL and the console messages should appear.  Also make sure you turn on verbose logging.

    Thanks,

    -Chad

    0
  • Nico Burgerhart

    https://docs.vertigisstudio.com/webviewer/latest/admin-help/Default.htm#gwv/add-a-workflow-to-an-app.htm
    To view Workflow debugging messages in the console when running a workflow in VertiGIS Studio Web:
    - If there are no existing URL parameters in the URL, at the end of the URL, add ?debug=true.
    - If there is already at least one URL parameter in the URL, at the end of the URL, add &debug=true.
    Designer displays Workflow debugging messages in the console by default.

    debug=true prevents also the caching of workflows.

    1
  • Zack Robison

    debug=true prevents also the caching of workflows.

    Usually.  YMMV.

    0

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