In ArcGIS Pro, I can successfully run the Trace Network Trace tool against my TN data set. I would like to publish this out as a server geoprocessing task to make it available to an ArcGIS Javascript 4x API web application, but I'm having a heck of a time trying to figure out how to configure the input parameters.
The behaviour I'd like to provide is:
- User selects a start point on the map
(Question: does this need to be a point that intersects a geometry of Trace Network feature, or will the Trace task simply find the closest feature to start from? - User selects the type of trace (downstream, upstream, connected)
- The start point is passed to the GP task as an input parameter. Is a GPFeatureRecordSetLayer the correct parameter type for this? What parameter type is this equivalent to in ArcGIS Pro?
- I won't be providing the option for barriers.
- I would like to view the results of the Trace as a map service. Ideally the GP Task would create a temporary map service equivalent to the group layer created in ArcGIS Pro when running the Trace tool. The results are broken down nicely into their source layers.
- Lastly, the GP Task must be available to ArcGIS Enterprise Viewers.
I've run Trace task in ArcGIS Pro and published it out as a service, but have not figured out how to pass it a starting point as an input parameter.
Any advice is much appreciated.