Example for CheckRecordState Activity

<Activity Name="CheckRecordInWorkflow">
<Start/>
  <Action>CheckRecordInWorkflow</Action>
  <Description lang="en">Check state of the record</Description>
  <Parameter direction="in" name="InRecordList" type="recordlist"    eval="variable">recordList</Parameter>
  <Parameter direction="in" name="CheckRecordState" type="string"    eval="constant">CheckExists</Parameter>
  <Parameter direction="out" name="OutRecordList" type="recordlist"    eval="variable">recordsNotExists</Parameter>
  <Parameter direction="out" name="RecordsProcessed" type="long"    eval="variable">recordsProcessed</Parameter>
  <Parameter direction="out" name="OutDocument"
  type="document" eval="variable">recordsNotExists</Parameter>
</Activity>