Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse expressions from an activity implementation property #318

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

andrei-ungureanu-uipath
Copy link
Collaborator

@andrei-ungureanu-uipath andrei-ungureanu-uipath commented Apr 24, 2024

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")) 
        };
    }
}

@andrei-ungureanu-uipath andrei-ungureanu-uipath force-pushed the fix/parse_expressions_from_activity_implementation branch from acfad17 to 8ab18b3 Compare April 24, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants