Search

Workflow Assign Activity Designer doesnt generate valid types for 'To' and 'Value' properties by Yor.Gor

Active

1
0
Sign in
to vote
Type: Bug
ID: 777380
Opened: 1/24/2013 6:20:10 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
Workflow Assign Activity Designer doesnt generate valid types for 'To' and 'Value' properties.
In VS 2010 everything was ok.
Manual edition as described in Expected results section also works.

upd:
copy of manually corrected Assign begins to track changes of properties and generate correct type in xaml.
bug can be reproduced only with newly added Assign
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

1)Declare some var of type 'MyClass' for exampe, and fill 'To' property with it
2)Declare and init some object with method,
MyClass object.GetMyClassVal()
for example and fill 'Value' property with calling this method
3)So we have Assign element To: myClass Value:object.GetMyClassVal()

Product Language

English

Operating System

Windows 7

Operating System Language

Russian

Actual results

xaml generated:
<Assign sap2010:WorkflowViewState.IdRef="Assign_2">
                     <Assign.To>
                        <OutArgument x:TypeArguments="x:Object">
                         <mca:CSharpReference x:TypeArguments="x:Object">myClass</mca:CSharpReference>
                        </OutArgument>
                     </Assign.To>
                     <Assign.Value>
                        <InArgument x:TypeArguments="x:Object">
                         <mca:CSharpValue x:TypeArguments="x:Object">object.GetMyClassVal();</mca:CSharpValue>
                        </InArgument>
                     </Assign.Value>
                    </Assign>
And error like 'Cannot implicitly convert from object to MyClassVal blahblah'

Expected results

<Assign sap2010:WorkflowViewState.IdRef="Assign_2">
                     <Assign.To>
                        <OutArgument x:TypeArguments="fgsfgs:MyClass">
                         <mca:CSharpReference x:TypeArguments="fgsfgs:MyClass">myClass</mca:CSharpReference>
                        </OutArgument>
                     </Assign.To>
                     <Assign.Value>
                        <InArgument x:TypeArguments="fgsfgs:MyClass">
                         <mca:CSharpValue x:TypeArguments="fgsfgs:MyClass">object.GetMyClassVal();</mca:CSharpValue>
                        </InArgument>
                     </Assign.Value>
                    </Assign>
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 1/24/2013 at 6:44 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 1/24/2013 at 6:50 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.