Run a Geoprocessing Task from WF5
I have am trying to run an ESRI water outage solution with WF5. I have a form for a point geometry picker to pass through but that does not seem to work. Do I need to convert this before entering that?
-
In the message in a bottle example, they convert the GeometryPicker Point using the Get FeatureSet from JSON and then pass it as an argument in the Run Geoprocessing Task. Something similar would probably work for you?
Get FeatureSet from JSON:
={
geometryType: "esriGeometryPoint",
spatialReference: $displayform1.state.GeometryPicker1.value.geometry[0].spatialReference,
features: [{
geometry: $displayform1.state.GeometryPicker1.value.geometry[0],
symbol: {"angle":0,"xoffset":0,"yoffset":0,"type":"esriPMS","url":"https://developers.arcgis.com/javascript/3/samples/gp_bottle/images/sailboat.png","width":19.5,"height":19.5}
}]
}
Run Geoprocessing:
Arguments
={
Input_Point: $featuresetfromjson1.featureSet,
Days: $displayform1.state.Number1.value.numeric
}
0 -
I tried using the example, but I don't think I am passing the argument correctly.
0 -
You might want to post some of your code so someone may be able to see what's wrong. You could also try posting any errors that may show up in the browser's console since those can help pinpoint where the error is happening.
Also, have you tried using the "Log" task. Anything you put in it is logged to the browser's console. This way you can see exactly what you're getting from workflows and what you're passing to arguments. You can sometimes find errors in your code this way when you see that values aren't what you expected them to be.
0 -
Sean - Did you ever get your geoprocessing activity to work?
We are having troubling passing in the argument as well.
0 -
Hi Claire, I have not. I tried to do what Matt was suggesting but haven’t found the time to upload or test more into this, but if you figure it out, would you mind uploading a sample of your workflow? I will do the same.
0 -
Sean - We got it working. Here is the syntax we used:
={
"Enter_Control_Number": `CONTROL_NO = '${$form1.state.autoComplete1.label}'`
}
Where Enter_Control_Number is the parameter name in our geoprocessing tool.
Thanks,
Claire
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
6 Kommentare