Creating Workflow Rules with CodeDom

N

nagarajanmm

I am quite stuck with building the CodeBinaryOperatorExpression for
the complex rules with CodeDom.

Eg: this.Severity == 1 && (this.Priority == "Low" || this.Severity ==
0) && (this.Active == true)

I need to write a logic for setting the Left and Right CodeExpression
properties of the CodeBinaryOperatorExpression. The Left
CodeExpression Property can go into more levels of Left and Right Code
Expression grouping.

Is there any simple way of converting the String text as above to
CodeBinaryOperatorExpression?

Thanks in advance,
Nags
 

My Computer

Top