Consumption Analytics Documentation

Home > Documentation for older versions > Cloud Cruiser 3 > Batch XML Reference > Transform processors > ConvertResourceNames


Table of contents
No headers

Converts one or more resource names using a lookup table which can be a flat file or a Translate Table Revision from the database. Each lookup table entry consists of a either a value range or a pattern along with a target value. By default, resourceId values that already match a target value in the conversion table are not processed. To force processing of all resourceId values encountered, set the strict property to true.

A processing exception will occur when any resource in the record fails to match or when all resources fail to match depending on the configuration. This is controlled by the matchAll property. The default behavior is "match any", which requires at least one resource in the record to match a conversion entry.

For information on lookup entry patterns, see "Translation process".

Processing a resource consists of comparing the resourceId to ordered table entries until a match is found or the end of the table is reached. In the case of a match, the target value for the first matching row is set as the resourceId of the CCResource bean being processed. In the case of no match, the behavior depends on exception processing settings. See CCRecordTransformTasklet for exception processing options.

For more information on exception processing, see Exception processing.


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


<property name="strict" value="false" />

Sets a flag to enable/disable strict processing. By default, ResourceId values that already match one of the target values in the lookup table provided are not processed. Strict mode will force processing of all resourceId values. The default is false .

<property name="matchAll" value="false" />

Sets a flag to enable/disable a processing exception when any resource fails to match a table entry.

By default, a processing exception is raised only when no resources in a record match an entry in the lookup table. Setting this property to true will result in a processing exception should any of the resources in a record fail to match an entry.

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

Sets a flag to activate exception processing. If true, any input record that does not result in a match is an exception. Otherwise, the source value is copied to the target identifier.

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

Sets the title of the managed translation table to be used. Managed translations are maintained using the client application. There may be multiple revisions for a translation. The revision that is in effect for the selection date of the active job is applied.

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

Sets a resource to a file-based translation table.

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.ConvertResourceNames">
            <property name="active" value="true" />
            <property name="strict" value="false" />
            <property name="matchAll" value="false" />
            <property name="exceptionProcessing" value="true" />
            <property name="translateTitle" value="default" />
Last modified


This page has no custom tags.


This page has no classifications.

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