Zum Hauptinhalt gehen

Run Workflow from feature hyperlink

Kommentare

7 Kommentare

  • Permanently deleted user

    Hi Luuk,

      you'll find this example on launching workflows from a feature hyperlink in the Geocortex Essentials 3.15 Administrator Guide in section 8.4.5 Object Tokens:

    <a href="command:RunWorkflowWithArguments?workflowId=BufferParcel&ParcelGeometry={$Geometry}">Create Remediation Buffer</a>

     You don't have to use object tokens, or any tokens at all, but the command RunWorkflowWithArguments does imply that you are passing arguments/parameters to the workflow.

    regards,

     

    Edmond

      

    0
  • Luuk Schaminée

    Edmond,

     

    thanks for your quick reply. I tried your suggestion but it didn't work. I have created another solution (which is only a workaround) where I added a function in the index.html file (var contact = function (antenneid) {geocortex.framework.applications[0].commandRegistry.command("RunWorkflowWithArguments").execute({workflowId:'contact',id:antenneid});};) and call this function with the fieldvalue.

    How do I create the feature hyperlink you suggest. If I enter "<a href="command:RunWorkflowWithArguments?workflowId=contact&id={ID}">Contact</a>" this URI is executed and it is opened.

     

     I also tried "command:RunWorkflowWithArguments?workflowId=contact&id={ID}" as URI but then the URL is also opened.

     

    Luuk

    0
  • Permanently deleted user

    Hi Luuk,

       Sorry, I misunderstood your initial request, (I guess I shouldn't post at 4 AM local time.) While you could use a feature hyperlink to launch a workflow, it would have to be done as a startup workflow since a feature hyperlink opens a new browser tab (by default) and would start a new instance of the viewer.  I don't think you really want to do that, but if you did, read section 9 of the Geocortex Viewer for HTML5 1.3 Administrator and Developer Guide for guidance on how to do it. 

      However, I think you really want to put a viewer command in a hyperlink in a feature description or long description. This method will not launch a new instance of the viewer, just start your workflow inside the current instance. My last post explained the HTML you'll need to add into the feature long description on the details tab in Essentials Manager. Also take a look at section section 8.5.1 Viewer Commands in Hyperlinks in the Geocortex Essentials 3.15 Administrator Guide for full documentation including a screen capture showing the overall picture. 

    regards,

     

    Edmond
    0
  • Permanently deleted user

    I noticed that you will need to check the Allow Unsafe Content box from Application setting in order for a viewer command to work in a hyperlink in a feature description.

    0
  • Permanently deleted user

    You may use 'Feature Description', which you can see under Results and Maptips configuration on Essential Manager - SIte - Map - Layer by using 'RunWorkflowWithArguments' (as a hyperlink) which takes workflowId, and a named property (you can pass Features' value using configured as field name) for each workflow arguments (Refer GVS/GVH Adminsitrator and Develoepr Guide document).

    Site.xml should contain the FeatureDescription similar with this (&lt;a href=&quot;command:RunWorkflowWithArguments?workflowId=UploadCompetitorAttachment&amp;FeatureId={OBJECTID}&quot;&gt;) when you configure through Essential Manager.

    It will create hyperlink like <a href='command:RunWorkflowWithArguments?workflowId=[WorkflowID]&FeatureId={OBJECTID}'>Run Workflow</a> where OBJECTID is one of the field, and WorflowID should be the ID of the workflow your configured on the Site. You can pass more attributes value like OBJECTID. Make it sure your workflow's argument contains Query String Key (in this case 'FeatureId' (you don't need to have 'workflowId' though.

    Munhwan

    0
  • Permanently deleted user

    Hi. I was aware that workflows could be run from the feature description but was wondering if there was a way to configure hyperlinks to do the same.

    0
  • Permanently deleted user

    I found that when I placed a viewer command to initiate a workflow in the feature description of an HTML5 v2.4, when the feature was clicked and the map tip appeared the link would be dead and my workflow would not start. However, if I performed an identify everything works fine.

    Would anyone be able to comment on this?

    Warren

    0

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