Jul 30, 2008 at 11:19 PM
Edited Jul 31, 2008 at 2:59 PM
I would like to have chained or nested expressions. That is I want expression to use other expressions for the calculations. The Calculation engine comes close so far as I understand, but it prepends the '$'. Is there a way to not require that prepended
'$'? Also is there a way to have the expression be interchangeable with the concept of a typed variable?
We are thinking of using Flee for our WF properties. The built in stuff will not work for us. We want the users to be able to either specify a value for the property OR an expression. Then the expression engine would resolve the value at execution.
Jan 14, 2009 at 6:37 AM
Edited Jan 14, 2009 at 6:41 AM
Im also bump into the same dilema,
I solved it by like this
1) define your variables first
_employee_name = "Jane Doe"
_employee_salary = 60.00
_days_worked = 6
2) define your expressions with the IGenericExpression Interface
Double) = context.CompileGeneric(Of
3) Go though a loop of all of your expression names and value collections
and if you bump into a IGenericExpression then do the generic evaluate for it
as far as i know there is no class for using epressions with the '$'
but that's what i did in my case see my thread on the subject "Custom Expression
Engine for Payroll"
letme know if you need to post some sample code to clarify it
Best Regards, and Happy New Year