Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How to use custom task activity inside while in visual studio 2010 sequential workflow?

I am using custom task activity which is in replicator activity and this is executed inside while condition .

but unfortunately i am not able to get the properties which has been set in workflow .

Note:- If While Condition is removed then it is working fine...

is anyone can provide solution why the values are not set when it is while activity.

Thanks in advance

share|improve this question
    
Consider having global properties and assign them in the workflow constructor. That way they should be available in the while loop as well. –  Grooverinthesouth Nov 29 '12 at 16:39
add comment

1 Answer 1

With the help using Dynamic object of replicator it is now working Just have to changed the below code

private void replicatorActivity1_ChildInitialized(object sender, ReplicatorChildEventArgs e) {

 SPTaskActivity customactivity = (SPTaskActivity)e.Activity;

    customactivity = TaskTitle;
            customactivity = TaskAssignedTo;
}   

and it worked.

Regards,

Salman

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.