Consumption Analytics Documentation

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


Table of contents
No headers

Converts an unknown resource to a well known resource with the option of preserving the original resource name in a new identifier. This processor might encounter a resource conflict when renaming the unknown resource. If this occurs, a new record is created containing all identifiers from the original record along with the renamed resource and, optionally, one new identifier. The original unknown resource is no longer present in the data either way. When strict processing is enabled, a transform exception occurs if a record does not have any resource matching the given pattern.


<bean class=”com.cloudcruiser.batch.transform.NormalizeUnknownResources”>


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

Sets a regular expression for the resource name pattern to be normalized. This expression can contain a capture group to specify what portion of the original resource name should be preserved as an identifier. The entire name is preserved when no capture group is present.

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

Sets the well known resource name to hold value(s) from matching resources.

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

Sets the name of an identifier to preserve each resource name that is converted to normal name. By default, no new identifier name is defined and therefore the original resource name is lost.

<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">
    <bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
      <property name="processors">
          <bean class="com.cloudcruiser.batch.transform.NormalizeUnknownResources">
            <property name="active" value="true"/>
            <property name="resourcePattern" value="network\.(.*IN.*)"/>
            <property name="targetResource" value="internalio"/>
            <property name="targetIdentifier" value="network"/>
            <property name="exceptionProcessing" value="true"/>
            <property name="strict" value="true"/>
Last modified


This page has no custom tags.


This page has no classifications.

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