RunWorkflowWithArguments *
Hi,
I am trying to pass a map click coordinates to a workflow. I am trying to use the RunWorkflowWithArguments command in a custom module but I cannot get it to work. I don't get an error, just it does not fire my workflow. Here is the relevant code.
public void HandleMapMouseClickedEvent(MapMouseButtonEventArgs args)
{
Map map = args.Sender;
Point screenPoint = args.Args.GetPosition(map);
ESRI.ArcGIS.Client.Geometry.MapPoint mapPoint = map.ScreenToMap(screenPoint);
Double x = mapPoint.X;
Double y = mapPoint.Y;
ToGeographic(ref x, ref y);
Dictionary<string, string> workflowparams = new Dictionary<string, string>();
workflowparams.Add("WorkflowID", "orwap_workflow");
workflowparams.Add("MapLat", y.ToString());
workflowparams.Add("MapLong", x.ToString());
CommandRegistry.GetCommand("RunWorkflowWithArguments").Command.Execute(workflowparams);
}
--Marc
0
Please sign in to leave a comment.
Comments
0 comments