Looking for an easy way to join branches...?
I am looking for a way to join logic paths back up, so that i don't require triplicate activities...
For example, if I query 3 different layers based on user input / choice, but then either way i want to zoom to an expanded extent of the results ( etc...).
In 4.x world in either path you would set a variable 'queryResults' and just make sure the lines connected back up to the common activities...
in 5... Every activity has a different id, so how would i tell the common step which 'queryResults' object to use...
logically i'd like to say in a GetFeatureSetExtent Expression...
=$query1.results || $query11.results || $query111.results
and then based on the path only one would ever have a value...
But that didn't work for me... Any ideas / suggestions?
In 4.x workflow
-
OK... So i found 'a' solution...
I used 'Create Value', and just got each branch to 'SetProperty' of that value... I guess that is how you can create variables?
0 -
That's correct. "Create Value" is a way of defining a variable. You can then use "Set Property" or "Evaluate Expression" to update the value of your variable.
The expression "=$query1.results || $query11.results || $query111.results" is likely not doing what you expect because $query1.results is an object (an empty FeatureSet) even if the query operation didn't find any features.
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer