UiPath / CoreWF

WF runtime ported to work on .NET 6
MIT License
1.12k stars 216 forks source link

Parse expressions from an activity implementation property #318

Open andrei-ungureanu-uipath opened 2 months ago

andrei-ungureanu-uipath commented 2 months ago

The CompiledExpressionActivityVisitor parser doesn't find expressions from an activity Implementation. This means that those expressions won't have a CompiledExpressionRoot and will rely on legacy code to compile for VB and for C# doesn't work at all.

Here is an example of an activity that will not have the expression compiled:

class ActivityWithVBValue : Activity
{
    public ActivityWithVBValue()
    {
        Implementation = () => new WriteLine() 
        { 
            Text = new InArgument<string>(new VisualBasicValue<string>("will not compile")) 
        };
    }
}