Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Transform processors > 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


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


<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">
    <bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
      <property name="processors">
          <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"/>
Last modified


This page has no custom tags.


This page has no classifications.

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