![]() |
Consumption Analytics Documentation |
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">
<batch:step id="transform" next="charge">
<batch:tasklet>
<bean class="com.cloudcruiser.batch.CCRecordTransformTasklet">
<property name="processors">
<list>
<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" />
</bean>
</list>
</property>
</bean>
</batch:tasklet>
</batch:step>
(c) Copyright 2017-2020 Hewlett Packard Enterprise Development LP