Note that there are some explanatory texts on larger screens.

plurals
  1. POCode Activities being skipped after AddToCollection<T> in WF 4.0
    primarykey
    data
    text
    <p>I can't figure out where my program flow is going in my WF 4 application. I have a Flow chart with a series of an AddToCollection and two code activities. When I step through, it hits the AddToCollection breakpoint and then just continues, skipping my code activities as if they weren't even there. I have no idea where to look because I am very new to WF 4. </p> <p>Here is a XAML snippet if it helps:</p> <pre><code>&lt;AddToCollection x:TypeArguments="x:String" Collection="[EmailList]" DisplayName="AddToCollection&amp;lt;String&amp;gt;" Item="abc@blah.com" /&gt; &lt;FlowStep.Next&gt; &lt;FlowStep x:Name="__ReferenceID0"&gt; &lt;local:CompileEmailBody EmailBody="{x:Null}" EmailList="[EmailList]" Products="[Products]" SwProduct="[SwProduct]" Type="Request" /&gt; &lt;FlowStep.Next&gt; &lt;FlowStep x:Name="__ReferenceID1"&gt; &lt;local:SendEmail Message="{x:Null}" Body="[EmailBody]" EmailList="[EmailList]" /&gt; &lt;/FlowStep&gt; &lt;/FlowStep.Next&gt; &lt;/FlowStep&gt; </code></pre> <p>Anything helps, I have no idea where to start! Cheers</p> <p><strong>UPDATE</strong> This is how I run the workflow from my controller:</p> <pre><code> inputs.Add("ProductLines", plArray); inputs.Add("SwProduct", prodString); var wfApp = new WorkflowApplication(new VersionedCompositionWorkflow(), inputs); wfApp.Extensions.Add(new TraceTrackingParticipant()); wfApp.Run(); </code></pre> <p><strong>Answer</strong> It turns out that I had not initialized the List that the collection was mapping to. For some reason I didn't get any errors with WorkflowApplication but I did with WorkflowInvoker I will give a right answer to anyone who can tell me why this could have happened.</p> <p>Cheers</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload