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

TruncateIdentifiers

Table of contents
No headers

Truncates one or more identifiers. Identifier name comparisons are not case sensitive.

NOTE: You can also truncate using the InputIdentifier java bean in the CreateIdentifierFromIdentifier transform.

Class

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

Properties

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

Sets one or more identifier names to be dropped from records processed.

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

Sets a regular expression to remove matching identifiers.

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

Sets the maximum length for identifiers in scope. If the value of a specified or matching identifier is longer then this maximum, then the value will be truncated to maxLength . The default value is 250.

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.TruncateIdentifiers">
            <property name="active" value="true" />
            <property name="maxLength" value="100" />
            <property name="identifierPattern" value="*.Description" />
            <property name="identifiers" value="AccountName,AccountAlias" />
          </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