You use a Struct property to group primitive type properties.
Before you begin
In the Business console, Struct properties are grouped in a separate section when viewing
the properties of a rule. When you are editing, they are grouped in a separate tab in the
Details editor.
About this task
You then create an extension model file and attach it to a rule model element.
Attention: Do not use a reserved
SQL keyword as the name of a property.
Procedure
To create a Struct property:
- Create or open an extension model file.
- In the Rule Model Extension Editor, right-click the extension
model entry and then click .
The tree
displays a new Struct item.
- Select the Struct item and, in the Properties
view, set the Name property to the name of
the new Struct property.
- To add properties to the Struct property,
right-click the Struct property, click , and then edit the properties as required.
- Right-click the rule model element to which you want to
attach the Struct property and then click .
The tree displays a new Property item.
- Select the Property item and, in the Properties
view, set the following properties:
- Save the extension model file.
Results
You have now created a Struct property and attached it to a rule model element.
In XML, you create a Struct property as follows:
<struct>
<property name="status" type="Status"/>
<property name="author" type="String"/>
</struct>