Run a Workflow from Windows Shell
Hello, is it possible to execute a standard Workflow from a batch file on a server?
Thank you
Guido
0
-
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.- Load the XAML file using ActivityXamlService.Load(filename);
- Create a workflow application, e.g. app = new WorkflowApplication((DynamicActivity)activity);
- Run the workflow application: app.Run();
- 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
Guido0 -
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.
Comments
3 comments