Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Filters > FileExistsCondition


Table of contents
No headers

Filter condition that checks for the existence of a particular file by name. The evaluation is case sensitive.


<bean class="com.cloudcruiser.batch.filter.FileExistsCondition">


<property name="fileName" value="fileName
" />

Specifies that the processor only processes records if the lookup file exists.

Spring Batch Example

This specifies that the CreateIdentifierFromTable processor only processes records if the required lookup file actually exists.

<batch:step id="transform" next="charge">
    <bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
      <property name="processors">
          <bean class="com.cloudcruiser.batch.transform.CreateIdentifierFromTable">
            <property name="filter">
              <bean class="com.cloudcruiser.batch.filter.FileExistsCondition">
                <property name="filename" value="${env.processDir}/host2acct_${env.selectDate}.csv" />
            <property name="sourceIdentifier" value="hostname" />
            <property name="targetIdentifier" value="@acctid" />
            <property name="lookupFile" value="${env.processDir}/host2acct_${env.selectDate}.csv" />
Last modified


This page has no custom tags.


This page has no classifications.

 (c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP