Hoppa till huvudinnehållet

Invoking workflow from outside of Geocortex Viewer

Kommentarer

8 kommentarer

  • Permanently deleted user
    +1
    0
  • Permanently deleted user
    +1
    0
  • Zack Robison
    What, specifically, are you trying to do?
    0
  • Permanently deleted user
    Hi Zank,

     

    Thanks for the quike response.

     

    We are Invoking Geocortex HTML5 Viewer from Iframe, We would like to call WorkFlow(Which performs some Action as per the end user requirement) When User Clicks on a button which resides outside of Geocortex Viewer. Is there any way to call workflow from outside geocortex viewer.

     

    Thanks in Advance.,

     

    Sreenivs Reddy

     

     

     
    0
  • Permanently deleted user
    There are few ways to achieve for your goal.

     

    0. Configure your workflow on Site via Gcx Essential Manager as the Startup Workflow by chekcing StartUp WF

     

    1. When a user launch the GVH ( geocortex viewer for HTML5), pass the extra informations for your workflow to take as QueryString. For example, http://[Your viewer URL]?ExtraID=1341&Another=ABC.

     

    2. On the startup Workflow - Get Browser Url activity, and parse to get the QueryString key/value pair, and execute the WF business logic to use those key/value extracted from the URL.

     

    3. StartUp WF is always executed whenever the viewer is launched (site is started).

     

    Or (if you want to wait for a click any button to execute the workflow but usign the extra information from the outside of Gcx Essential and GVH.

     

    0. COnfigure the workflow as non-startup WF as usual way

     

    1. On your Viewer (GVH), you can implement a small custom module to parse the URL by chekcing window.location.href, and get the set of QueryString key/value pairs, and execute the workflow by a command, which can be configured as a Button on Toolbar tool through Gcx Essentail Manager - Site - viewer - toolbar tool

     

    1-1 there are few commands related with Workflow (check http://gedemo.geocortex.com/SamplesViewer/#commands.Workflow). For example, RunWorkflowById, and RunWorkflowWithArguments. These commands are implemented on GVH product to execute the workflow configured on Gcx Essential.

     

     

    To answer your question, there is no way to execute the Gecortex Essentila Workflow without Geocortex Essentails and the supporting viewer specific commands. But above two options can be used to achieve what you want to do. To make it short, pass the extra information from the Outsite of viewer through the Url (queryString), and execute the Workflow either by Startup (execute always) or by a user interaction through the command(s).

     

    Wish this helps you out.

     

    Moon 1

     

     
    0
  • Dan Giersz
    Yes, the simplest way to do this is to run the workflow from URL. Your button on the other site just needs to send the user to the URL. And you don't need the workflow set to run at startup, just sending the URL with the runworkflow arguement and parameters will trigger it.
    0
  • Permanently deleted user
    We have to achieve the above specified functionality without refreshing the Viewer. Is it possible?
    0
  • Zack Robison
    I think so, but I don't know how and it definitely will require some javascript that isn't out-of-the-box.
    0

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