title: Replicator Activity in sequential Mode for Approval WorkFlow in SharePoint 2010
body: <p>I am trying to create a Dcoument Approval WorkFlow, with Custom Task Edit infopath forms</p>
  
  <p>Flow is ,When A Document is added into the List , it is assingned to User A , who is Orignator's Manager.</p>
  
  <p>When User A Approves the document , it Assigned to User B for Approval.User B is fixed.</p>
  
  <p>When User B has approved the document , then User B himself will assign the document to User C(Which means User C is dynamic and will be there at runtime).</p>
  
  <p>When User C Approves it ,  A Task should be created for User , and work Flow should continue till User C Completes his Task.</p>
  
  <p>Is Any of the Users , rejects the Task, The Workflow Should Stop.</p>
  
  <p>How I implmented it ;</p>
  
  <p>I created one Sequence Activity , as follows :</p>
  
  <ol>
  <li>-create Task</li>
  <li>-whileTaskNotComplete (onTaskChanged)</li>
  <li>Complete Task </li>
  </ol>
  
  <p>then Placed this Activity under Replicator Activity.</p>
  
  <p>I am not sure how to set Replicator initialized and Child initialzed values .</p>
  
  <p>I know replicator needs to be run for 3 times, but the last iterations value is not fixed, it is provided at runtime under second iteration.and under onTaskChange event of Activity.</p>
  
  <p>How can I pass this value to workflow or next iteration?</p>
  
  <p>second thing when i am setting any value for Apporver under replicator initialized method , it is assigning all the Tasks to same Approver which is set under initialized method.</p>
  
  <p>could you please help me , I referred the videos <a href="http://www.shillier.com/Videos/MultipleTasks.wmv" rel="nofollow">http://www.shillier.com/Videos/MultipleTasks.wmv</a>, but it is for Parallel mode , I need in sequential mode.</p>
  
  <p>Thanks in advance.</p>
  
  <p>Azra</p>