Example for DeleteRecord Activity

<Activity Name="DeleteRecord">
  <Start/>
  <Action>DeleteRecord</Action>
  <Description lang="en">Delete records</Description>
  <Parameter direction="in" type="string" eval="constant"   name="eventState">DELETERECORDS</Parameter>
  <Parameter direction="in" name="InDocument" type="document"   eval="variable"> inDoc </Parameter>
  <Parameter direction="in" name="RecordKey" type="arraylist"   eval="variable">ProductKeyArray</Parameter>
  <Parameter direction="in" name="MasterCatalog" eval="constant"   type="String">XYZ</Parameter>
  <Parameter direction="in" name="VersionOption" type="string"   eval="constant">LATEST</Parameter>
  <Parameter direction="out" eval="variable" type="long"   name="RecordsProcessed">RecordsProcessed</Parameter>
  <Parameter direction="out" eval="variable" type="long"   name="RecordsDeleted">RecordsDeleted</Parameter>
  <Parameter direction="in" name="RelationshipName" type="string"   eval="constant">Contains</Parameter>
  <Parameter direction="in" name="IncludeDraftRecords" type="boolean"   eval="constant">false</Parameter>
</Activity>

Example when DeleteRecord is invoked as part of the import process.

<Activity Name="DeleteRecord">
  <Action>DeleteRecord</Action>
  <Description lang="en">Delete records for import</Description>
  <Parameter direction="in" type="string" eval="constant"   name="eventState">IMPORTDELETEPROD</Parameter>
  <Parameter direction="in" name="ImportDataDeleteRecord" type="boolean"   eval="constant">true</Parameter>
  <Parameter direction="in" eval="xpath" type="string" name="MasterCatalog"   source="/Message/Body/Document/BusinessDocument/CatalogAction/CatalogAc       tionHeader/MasterCatalog/RevisionID/BaseName/text()">inDoc</Parameter>
  <!--Parameter direction="in" eval="constant" type="long"        name="RecordPerAsyncCall">10</Parameter-->
  <!--Parameter direction="in" name="AsynProcessIndicator" type="boolean"        eval="constant">true</Parameter-->
</Activity>