Component Item Object

Get an array of Component Items for the Component.

The Component Item object represents a Component item within a Component. Access to a Component item is only possible by retrieving the array of Component Item objects from the Component Object.

The following properties can be accessed for a Component item object:

Property Type Description
ID Integer Component Item id, as used in the database.
name String Component Item name.
summary String Summary text.
parent Object The Component to which this Item belongs.
repository String The Name of the Repository from which this Component Item pulls files.
target String The target directory to which the files should be deployed.
rollup Boolean Whether this Component Item should be deployed during a roll forward operation.
rollback Boolean Whether this Component Item should be deployed during a roll back operation.
properties Array An array of Strings representing the values for the Repository Attributes

Example

Iterate through the _Component_ items for a _Component_:

iterate(ci: ${Component.items}) {

echo "name=${ci.name}"; // Component Item Name

echo "repository=${ci.repository}"; // Repository Name

echo "target=${ci.target}"; // Target Directory

echo "rollup=${ci.rollup}"; // rollup (true/false)

echo "rollback=${ci.rollback}"; // rollback (true/false)

set props = ${ci.properties}; // Other Properties

echo "properties:";

foreach(p: $props) { // Properties Specific

echo "$p = ${props[$p]}"; // to the Repository

} // for this Comp Item

}