Not everything shown at edit time is exactly how it will be when the expression is evaluated. There are placeholders at edit time for the RunState.InitialSelection items when you look for them in the expression browser dialog box, but what they are populated with at run time will depend on what's selected. For the name and enabled expression it's kind of tricky to see what's available when they are evaluated since they are evaluated outside of an execution. But if you want to see exactly what is available at runtime (which is similiar, but as you discovered, slightly different than what you get with the name expression), the easiest thing to do is set a break point at the begining of your execution entry point sequence, begin an execution using that entry point, and then look in the Variables tab of the execution document to browse the variables to see what actually exists.
As you expected it probably does make sense for the sequence locals and other data to be set when the name and enabled expressions are evaluated. I've recorded this suggestion as something to look at doing in the future.
Hope this helps,
-Doug
Message Edited by dug9000 on
04-09-2008 02:20 PMMessage Edited by dug9000 on
04-09-2008 02:21 PMMessage Edited by dug9000 on
04-09-2008 02:23 PMMessage Edited by dug9000 on
04-09-2008 02:25 PM