Skip to main content

Run a Workflow from Windows Shell

Comments

3 comments

  • Berend Veldkamp
    I don't think Geocortex includes that possibility. But workflows being a standard Microsoft technology, it is not hard to write a tool that does what you want (if you are a .NET developer). I actually wrote such a tool for a client, but I can't share it here.

     

    To explain every detail would be beyond the scope of this forum, but here are the three basic steps.
    1. Load the XAML file using ActivityXamlService.Load(filename);
    2. Create a workflow application, e.g. app = new WorkflowApplication((DynamicActivity)activity);
    3. Run the workflow application: app.Run();
    Things to add would be:
    • Passing input parameters to the workflow,
    • Loading external libraries needed by the workflow, such as Esri.ArcGIS.Client etc.
    • Error handling
    0
  • Thank you Berend, we could try this!

     

    Ciao

     

    Guido
    0
  • Berend Veldkamp
    Another way would be to have the batch process make an HTTP request to the workflow's REST endpoint. The downside of doing that is you may get a timeout if the workflow takes more than 30 seconds.
    0

Please sign in to leave a comment.