Zum Hauptinhalt gehen

Does GCWorkflow5 have an ability to run a workflow from a URL like the oldworkflows: ...Html5Viewer/index.html?runworkflow=myworkflow ?

Kommentare

8 Kommentare

  • Tom Neer

    James, yes. There is a Geocortex Tech Tip "How to run a workflow at application startup with Geocortex Workflow 5" that will help.

    0
  • James Blake

    That is a workflow that runs every time. That is not quite what I wanted to do. I currently have a number of the old workflows for going directly to some feature or similar thing (like ?runworkflow=gotoBuilding&BuildingID=T100 or runworkflow=gotoPermit&PermitNum= etc...

     

    On thinking about it though, I think what I will do is create a newstartup workflow that parses the URL and looks for a runG5workflow and if it exists invoke the G5 workflow and pass the appropriate variables and if nothing is set, it will exit silently. I think that could work.

     

    Thanks,

     

    0
  • Tom Neer

    @James Blake? James misread the post on the road. AFAIK, you would need to bridge this using a Workflow 4 to capture the input and pass off to your Workflow 5. Because Workflow 5 doesn't "live" in the REST interface, not sure if there is another viable option currently. Maybe add it to Ideas?

    0
  • Permanently deleted user

    @James Blake? Did you get this to work? I am trying to do the same thing.

     

    Anders

    0
  • Permanently deleted user

    I got This answer from Geocortex: (ParseURL.query is the key)

    Hi Erik,

     

    RunWorkflowByUrlAndInputs is not supported but you can make this work without it. You can add a Workflow 5 workflow as a startup workflow. In that workflow use the “Parse Url” activity without supplying any inputs to it. This will cause it to parse the current URL of the web browser. This provides you access to all URL parameters and you can then do your specific logic based on the URL parameters you are expecting, or end if the parameters are not present.

     

    Both RunWorkflowByUrl and RunWorkflowByUrlAndInputs were considered as potential URL parameters we could support, but they were rejected because they would introduce security risks. We have no way to trust the workflow specified by the URL because it has not been configured by an administrator. It would be too easy to craft a malicious workflow and then send someone a link to a trusted GVH application that would then run the malicious workflow.

     

    --Ryan

     

    Ryan Cooney

    Latitude Geographics (a VertiGIS company)

    Regional Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7

    Tel: (250) 381-8130 | rcooney@latitudegeo.com 

     

    0
  • Permanently deleted user

    Thanks Erik, works like a charm:-)

     

    Anders

    0
  • Ali VanSickle

    Does anyone have a sample of how the Parse URL works?

    I want to have my URL as: http://MyServer.com/Html5Viewer/Index.html&RunWorkflowByUrlAndInputs?url={}&input={}

    If I create my startup workflow and use the Parse URL activity, the viewer fails to load because it doesn't like the initial URL that was supplied.

    I am trying to avoid having to create this workflow in workflow 4. But it was very simple to do.

    0
  • Ali VanSickle

    It was a syntax error in my URL. I forgot to add "&" when passing in the parameters. I successfully have this working in WF5.

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.