Incorrect result count for Complete Parcel Selection, Buffering, and Report Workflow sample
I have downloaded the Complete Parcel Selection, Buffering, and Report Workflow from the code gallery, set the properties, and run it as is. Overall it appears to work correctly except for one issue. The first time I run the workflow I get to the end where i can run the report, select results, or modify. I choose to select results and get a result count in the table. I get the number of results expected (for example 10 taxlots). If I run the worflow again all appers to work and I see the correct number of buffer results (for example 6 this time), but upon selecting the results in the final step I notice the final workflow result count is 16 rather than 6. If I run the workflow again it will continue to add the new buffer results and increase the end select count. I've double checked both the old 'clear collection first' and new 'combine mode' properties to make sure they are either true or replace but nothing seems to work. Anyone else have this happen? What am I missing? Thanks.
0
-
Hi Lee,
I looked at the workflow and it appears as though the "Modify Selection" button you click at the end does not actually restart/clear your previous selections. It simply adds or remove from it. It is not something you can just change in the SelectFeatures activity because it is actually the geometry (called "selectedGeometry") referenced by the Query Task activity that determines which parcels get added to the collection at the end.
If you want to allow the user to run the workflow again from scratch, then I would suggest adding a display form after the "Execute Run Report" sequence to allow the user to choice whether they want to run the workflow again. If they do, then you link the "Run Again" side to the "initialize workflow" sequence at the top and it would clear all the collections and geometries.
I hope this helps.
Carmen0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar