[Index]

identify


Register the a value with an Id.

Unlike components, values can't have an Id. This type allows values to be registered so they can be referenced via the given Id elsewhere in the configuration.

Components are registered when the configuration is parsed but the given value will only be registered during the configuration phase, such as when a job runs in Oddjob.


Property Summary

id The id to register the value with.
value The value to register.

Example Summary

Example 1 Register a value.

Property Detail

id

Configured ByATTRIBUTE
AccessREAD_WRITE
RequiredYes.

The id to register the value with.

value

Configured ByELEMENT
AccessREAD_WRITE
RequiredNo but pointless if missing.

The value to register.


Examples

Example 1

Register a value.

<oddjob>
    <job>
        <sequential>
            <jobs>
                <variables id="vars">
                    <test>
                        <identify id="our-value">
                            <value>
                                <value value="Apples"/>
                            </value>
                        </identify>
                    </test>
                </variables>
                <echo>Checking ${vars.test} is ${our-value}</echo>
                <check value="${vars.test}" eq="${our-value}"/>
            </jobs>
        </sequential>
    </job>
</oddjob>


(c) Rob Gordon 2005 - 2017