Adding a While Activity Dynamically RRS feed

  • Question

  • Hey Guys,

    I am trying to add a While Activity in a Sequence. But not able to assign Condition property of this activity. Initially I thought that I can assign condition similarly as I was assiging in If Activity but this is a diiferent type. While's condition is of Activity<bool> type.

    Do you guys know that how can I create a Condition for While activity which will be based on expression like num1>num2?

    Please see code below for reference.

    sequence.Activities.Add(new While
                    Condition = ? 
                    Body = new Sequence
                      DisplayName = new Guid().ToString(),
                    DisplayName = new Guid().ToString(),

    Software Engineer
    Sunday, April 24, 2011 5:43 PM


All replies