The Format of the Attributes XML File

The attributes file is an XML-format file that you can use to reorder the attributes within an attribute group.

See Also
About Attribute Groups
Creating a Simulation Attribute

Process Composer allows you to export an attribute group to an XML file. You can then edit the XML file, reorder the attributes within the group, and import the XML file back into Process Composer.

You cannot use the XML file to create or delete attributes; however, you can modify an attribute's default value, minimum/maximum range, and whether it is mandatory. You can specify possible values for the attribute, provided possible values were not specified when the attribute was created.

The following illustrates the format of the attributes XML file:

<?xml version="1.0" encoding="UTF-8"?>
<AttributeGroup>
  <Attributes>
      <Attribute attributeName="model" valuetype="singleval" inputoutput="both" mandatory="false">
        <Default>DX4</Default>
      </Attribute>
      <Attribute  attributeName="color" valuetype="singleval" inputoutput="input" mandatory="true">
         <Default>red</Default>
         <Choices>red
            green
            blue
            yellow</Choices>       
      </Attribute>
      <Attribute attributeName="numWheels" valuetype="singleval" inputoutput="output" mandatory="true" 
                 minimum="0" maximum="10"> 
         <Default>4</Default>
      </Attribute>
      <Attribute attributeName="radius" valuetype="singleval" inputoutput="input" mandatory="true" 
                 minimum="0.0" maximum="10.0">
         <Default>1.1</Default>
      </Attribute>
      <Attribute attributeName="weight" valuetype="multival" mandatory="false" inputoutput="both">
         <Default></Default>
      </Attribute>
      <Attribute attributeName="modelType" valuetype="multival" mandatory="false" inputoutput="both">
         <Default></Default>
      </Attribute>
   </Attributes>
</AttributeGroup>

If you provide choices for an attribute, you must provide a default value, and this default value must be one of your possible values. Similarly, if you provide minimum and maximum values, you must provide a default value that is greater than or equal to the minimum value and less than or equal to the maximum value. If you enter possible values, you cannot specify the minimum or maximum value and vice versa.

Choices and minimum and maximum values are ignored by an attribute with valuetype set to multival.