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

NormalizeSeriesNames

Table of contents
No headers

Converts a series of identifier and/or resource names. This processor may encounter a conflict when renaming members. If this occurs, a new record is created containing all identifiers from the original record that do not belong to the series along with the renamed resource(s) and identifier(s). When strict processing is enabled, a transform exception occurs if a record does not have a resource or identifier matching the given name pattern.

The pattern property takes a regular expression. The expression must contain a single capture group to specify what portion of the original name is the series key. This portion is used to correlate resources and identifiers that belong together and will be removed from the matching names.

Class

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

Properties

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

Sets a regular expression for the resource name pattern to be normalized.

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

Sets flag for strict processing mode. When active, a record with no matching resource results in a processing exception. Otherwise, no such checks are performed. The default is false .

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.NormalizeSeriesNames">
            <property name="active" value="true" />
            <property name="seriesPattern" value="Volume(?:Name|Unit|Size)(_[0-9])" />
          </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