5/29/2012 9:14 PM
Expresssions are extremely valueable in programming and in Business Process Management. cDevWorkflow had a smart and powerful expression evaluation engine, but it was time to make it smarter and more powerful. We got many requests from our existing customer to enhance the expression engine.......
So we did it, now the expression engine uses the exact same c# compiler. Any expression that executes on Visual Studio now can be evaluated. Here's are some examples of more complex expressions:
- (DateTime.Parse("11/7/2012") - DateTime.Now).Days
- Math.Abs(-5) * 25
- (Variable.A > 5 && Variable.A < 25)
- Variable.start == 100
- Variable.Status == "paused" || Variable.Status == "Closed"
We also looked at performance improvements, expressions are not just evaluated, they are compiled into memory and evalated as compiled code. This method give much increased performance over the previous expression evaluation engine.
The new expression engine will be availabe on the next release of cDevWorkflow 4.7.