Example for ManageWorkItem Activity

<Activity Name="CloseAllWorkitems">
  <Action>ManageWorkItem</Action>
  <Start/>
  <Description lang="en">Closes all the open workitems and set the status   to Cancelled.</Description>
  <Execution>SYNCHR</Execution>
  <Parameter direction="in" eval="constant" type="string"    name="WorkItemAction">CLOSE</Parameter>
  <Parameter direction="in" eval="constant" type="string"    name="WorkItemStatus">CANCELLED</Parameter>
  <Parameter direction="in" name="InDocument" type="document"    eval="variable">inDoc</Parameter>
 </Activity>