Cloud Cruiser became HPE Consumption Analytics on Nov. 1, 2018. You'll still see the old name in places while we update this site.



Consumption Analytics Documentation

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


Table of contents
No headers

Creates a new resource from a constant value.


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


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

Sets the overwrite.

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

Sets the target resource.

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

Sets the constant value.

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.CreateResourceFromConstant">
            <property name="targetResource" value="cpusec"/>
            <property name="constantValue" value="100"/>
            <property name="active" value="true"/>
            <property name="overwrite" value="false"/>
Last modified


This page has no custom tags.


This page has no classifications.

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