Alias Query Service Url
I'm creating a parcel search in a metro area that has multiple counties. To make my life easier, I'm trying to create aliases for each of the query service urls for each county. I thought I could set this using Arguments, but it seems I get this error: "Default values are not support on Activity Builder arguments." Since these are pretty static and can be hard coded, i didn't think they belonged in the Variables section. Can anyone suggest a way to build a list of query service urls with friendly names?
Thanks for your help.
-
To add to my previous comment, I think what i need is a reference table that has these fields:
State, County, Query Service URL, Layer ID, Map Service ID
Example:
Texas, Harris, http://ags.localhost.com:6080/arcgis/rest/services/houston/MapServer/28, 5, 28
When a user selects a county, a switch statement populates variables based on the table above. It seems that i might need to create services that are hidden from the map, but accessible to the workflow. Does anyone have an example of doing this?
0 -
Hi Ethan,
Arguments should be used when you want to manage their values outside of the workflow. For example, if you created a mapServiceUrl argument, you could add a property on the workflow in Rest Manager that matched, and set the value on the property. That way, if the value needs to change, you don't have to open the workflow, you can manage it directly from Rest Manager.
Using arguments this way, or storing the urls as default values on regular variables will be the cleanest way to keep track of them, and keep your workflow readable. However, if you would like to create an external reference table, you can access it one of the following ways:
1. Publish it with your map service so that it has a rest endpoint that can be queried using the workflow QueryTask activity, or
2. Query it directly using the SQLQuery workflow activity.
The first way will put return the values as attributes of a graphic, and the second will return a data table. Both will require some manipulation to get the values back out in a usable format.
-Victoria
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare