Home > Cloud Cruiser 3 > Batch XML Reference > Transform processors > RenameResourceFromTable

RenameResourceFromTable

Table of contents
No headers

Renames a specified resource using an identifier in the record to look up a new name in a translation table that can be a flat file or a Translate Table Revision from the database. A processing exception occurs if any of the following are true:

  • The source resource exists and the input identifier does not
  • The target resource already exists
  • The input identifier does not match a table entry

Class

<bean class="com.cloudcruiser.batch.transform.RenameResourceFromTable">

Properties

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

 

Sets the name of an identifier containing a value to use for table lookups.

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

 

Sets a resource to a file-based translation table. Use either this property or translateTitle .

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

 

Sets the resource ID to rename.

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

 

Sets the title of the managed translation table to be used. Use either this property or lookupFile .

<property name="exceptionProcessing" value="true" />

 

Sets a flag to activate exception processing. If true, any input record that meets one of the criteria listed above generates an exception. Otherwise, the source value is copied to the target resource.

Spring Batch XML Example

<batch:step id="transform" next="charge">
  <batch:tasklet>      
    <bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
      <property name="processors">
        <list>
          <bean class="com.cloudcruiser.batch.transform.RenameResourceFromTable">
            <property name="active" value="true"/>
            <property name="exceptionProcessing" value="true"/>
            <property name="resource" value="Total_RawRsvd_MB"/>
            <property name="inputIdentifier" value="ipAddress"/>
            <property name="translateTitle" value="myTable"/>
          </bean>
        </list>
      </property>
    </bean>
  </batch:tasklet>
</batch:step>
Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP