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

Bug 364231

Summary: Need ability to use Sapphire EL for derived value properties
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: shenxue.zhou
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-11-19 17:42:13 EST
The current support for derived properties uses @Derived annotation (no attributes) and requires the adopter to implement DerivedValueService. While having the option to implement DerivedValueService is good, many common derived property usecases can be solved simpler by using Sapphire EL. To this end, we should add "expr" attribute to @Derived annotation along with the appropriate logic in the framework to synthesize a DerivedValueService based on the expression.
Comment 1 Konstantin Komissarchik CLA 2011-11-20 22:48:52 EST
Added @Derived.text attribute with support for Sapphire EL.
Comment 2 Shenxue Zhou CLA 2011-11-28 17:03:24 EST
Verified with Purchase Order's Subtotal property.