Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 339443

Summary: Expression should support navigation to parent element
Product: z_Archived Reporter: Shenxue Zhou <shenxue.zhou>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: konstantin
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Shenxue Zhou CLA 2011-03-09 17:44:22 EST
I've run into a situation where I need to be able to reference parent element in expression. As an example: ${parent().FromActivity}-${ToActivity}. We need to extend the expression language to support this case. Note that it needs to be recursive so I can refer to grandparent, greate-grand parent node etc.
Comment 1 Konstantin Komissarchik CLA 2011-03-10 17:05:20 EST
Implemented Parent() and Root() functions. Added corresponding unit tests and a blurb in the what's new doc.
Comment 2 Shenxue Zhou CLA 2011-06-02 17:50:59 EDT
Verifed.