Administration Configurable Options
Copy
The following steps walk through the configuration of CMF for a custom Business Object ItemType. For additional detail on configuring properties, please refer to the property definition tables in each section.
The Business Object ItemType is an ItemType that will be linked to the Content Modeling Framework ItemType. The Business Object ItemType for the following example is called “MyProcessPlan”. This ItemType does not require special configuration for use with CMF.
- In the Navigation Pane select Administration ItemTypes in the TOC. The following menu appears:
- Click Create New ItemType. The following screen appears:
- Enter a name and labels.
- Name: MyProcessPlan
- Singular Label: My Process Plan
- Plural Label: My Process Plans
- Name: name
- Label: Name
- Data Type: String
- Length: 32
- Set access and permissions in the TOC Access tab, the Can Add tab, and the Permissions tab.
In the Properties tab, click
to add a new Property.
Click
and
to save and unclaim the MyProcessPlan ItemType. It should look like Figure 3:
The CMF ItemType creates a link between the Business Object ItemType and the Content Type, allowing administrators to configure custom views.
- Navigate to Administration ItemTypesCreate New ItemType in the TOC.
- Enter a name and labels.
- Name: MyPQD
- Singular Label: My PQD
- Plural Label: My PQDs
- In the Properties tab, add a new Property
- Name: name
- Label: Name
- Data Type: String
- Length: 32
- Click Save and Done. It should look like Figure 4.
- Select the Views tab and double-click the MyPQD form.
- Search for cmf_ShowContentType, select it and click OK.
- Double click the blank box in the Event column. Click the Down arrow to select the OnFormPopulated method.
Set access and permissions in the TOC Access tab, the Can Add tab, and the Permissions tab by clicking the Add icon
.
Lock the form, go to the Form Event tab, and click Add Methods
. The Method Search dialog appears:
Click
to Save the MyPQD form. Click
to unclaim it.
- Navigate to Administration RelationshipTypes in the TOC. The following menu appears:
- Click Create New RelationshipType. The following window appears:
- Enter a name and label.
- Name: MyPQDRel
- Label: MyPQDRel
- Set the Source ItemType to the CMF ItemType: MyPQD.
- It should look like Figure 9:
Click
and
to save and unclaim the item.
The Content Type item links the Business Object ItemType to the CMF ItemType and is used to configure the custom grid and tree on the CMF items.
- Navigate to Administration Content Modeling Content Types in the TOC. The following menu appears:
- Click Create New Content Type. The following screen appears:
- Enter My PQD in the Name field.
- Set the Linked ItemType to the CMF ItemType. In this instance, that is MyPQD.
- It should now look like Figure 12.
- Right-click the Elements tab on the Content Type tree and select Add Element Type.
- Enter MyElement1 in the Name field for the Element Type.
- It should now look like Figure 13.
Content Type Elements
- Right-click the Element (MyElement1) in the tree and select Add Property Type
- For this example, create the following Property:
- Data Type: Text
- Name: MyTextProp
- Create another Property:
- Data Type: String
- Name: MyStringProp
- Data Length: 32
- Refer to Table 2 for a complete list of the properties of the Element Properties.
- Save Content Type.
- It should look like Figure 14.
- Right-click the MyElement1 item again and select Add Element Binding.
- For this example, set the following properties:
- Referenced Type: MyProcessPlan (Business Object ItemType)
- Tracking Mode: Show Differences
- Resolution Mode: Current
- New Element Mode: Pick or Create
- Refer to Table 3 for a complete list of the Element Binding items.
- Add a new item to the Property Bindings tab.
- Configure the following properties:
- Referenced Property: name
- Document Element: MyStringProp
- Save the Content Type.
- It should look like Figure 15.
- String
- Text
- Integer
- Date
- Boolean
- Image
Click
to save the property.
Document Conventions
Property | Description |
| DataType | DataType of the Element’s property |
| Name | Element’s name, a string, 30 |
| My Data Length | The maximum character length, only used for strings |
| Default Permission | A default Permission Item set for new Elements of this type, optional. |
Document Conventions
Property | Description |
| Referenced Type | The Business Object ItemType that will be bound to the Element Type |
| Tracking Mode | Show Differences: Show differences between Elements of this type and the referenced Business Object Ignore Differences: Ignore differences between Elements of this type and the referenced Business Object Hard Show Differences: Overrides Content Type Life Cycle-specific tracking mode Hard Ignore Differences: Overrides Content Type Life Cycle-specific tracking mode |
| Property | Description |
| Resolution Mode | Identifies which generation of bound item to access to perform value comparison. Current: use the current version of the item As Saved: use bound_item_id as is, do not use the current version of the item Hard Current: Overrides the LifeCycle resolution mode Hard As Saved: Overrides the LifeCycle resolution mode |
| New Element Mode | Define how new elements may be added. Pick or Create Pick Only Create Only |
| Reference Is Required | User cannot create an unbounded Element. All Elements of this type must have a reference to a Business Object. |
| Structure Mapping Method (SMM) | The SMM returns the table data, allowing users to see conflicts between structures. The SMM is executed based on the Element Type. If a structure contains two different Element Types with SMM, both methods will run. This method is called when: An Element is added (New, Pick, Create) An Element is deleted A Reference is released On Pick/Replace of an Element |
| On Create Reference | Optional. This method is called when a user attempts to create a reference on a Business Object. If no method is set, the default implementation will execute. |
| On After Pick | A method called after a user picks some business object from the context menu. |
| On Apply Binding | Optional. The method will be called when the Element is picked. The method should link the selected Business Object to hierarchy of the main Business Object. This method also will be called when an Element exists but is not in the hierarchy of Business Object and the user wants to include the Element into the hierarchy of the Business Object. |
Currently, the Binding Types intersection is supported for the following Data Types:
Content Type Element Identity Inheritance
Content Type Elements inherit the managed_by_id, owned_by_id, and team_id properties from the parent Content Type instance item. The Element’s created_by_id and modified_by_id properties are not inherited.
For this sample case, this means that any MyElement1 items will be created with the managed_by_id, owned_by_id, and team_id values from the parent MyPQD item.
Content Type View
- Right-click the Views node in the Content Type tree and select Add View.
- Click OK to confirm a tabular view.
- Enter a name for the Tabular View.
- It should look like Figure 9.
- Expand the Tabular View sub-tree
- Right-click the Columns node and select Add Column.
- Enter the following values in the new Tabular View Column
- Mapped Property: MyStringProp
- Header Title: My String
- Initial Width: 100
- Add another Column to the Columns node.
- Mapped Property: MyTextProp
- Header Title: My Text
- Initial Width: 200
- It should look like Figure 17.
- Right-click the Element Nodes node on the Tabular View sub-tree and select Add Element Type Configuration.
- Enter the following properties for the Element Node:
- Label: MyElement1 Label
- Element Type: MyElement1
- Icon: Choose an image
- It should look like Figure 18.
- Right-click the Additional Header Rows node and select Add Additional Header Row.
- Add a new Group relationship with the following properties:
- Label: My Group Label
- Start: 1
- End: 2
- It should look like Figure 19.
- Save, Unclaim, & Close the Content Type.
Use the following procedure to confirm the configuration of the Business Object ItemType and the linked Content Type.
- Create an instance of the Business Object.
- Click My Process Plans in the TOC. The following menu appears:
- Click Create New MyProcessPlan and create a new My Process Plan item with the name “Plan 1”.
- Click Done.
- Create an instance of the CMF Object.
- Navigate to My PQDs in the TOC.
- Create a new My PQD item.
- Set name as “PQD 1”.
- Save PQD 1.
- In the CMF Item, click the Show Editor icon in the sidebar.
- Add an unbounded element to the Content ItemType:
- Right-click the root element tab in the tree and select Insert MyElement1 Label New.
- Enter values for My String and My Text.
- Add a bound element from reference:
- Right-click the root element tab in the tree and select Insert MyElement1 Label From Reference Select.
- Run a search in the Search Dialog, select “Plan 1”, and return the selected object (click the green checkmark).
The tree and grid should appear configured as in Figure 21:
To see an example of these RelationshipTypes, create the following:
- Create a new ItemType called “Desk.”
- Create a new Content Type item:
- Name = “Desk_CMF”.
- Linked Item Type = “Desk”.
- Add an Element to Desk_CMF called Desk_Element1.
- Add a Property to the Desk_Element1 called Desk_Prop1.
- Save and close the Desk_CMF Content Type.
- Open the Desk ItemType and go to the RelationshipType tab.
There should be 2 items that were automatically created in the CMF process.
When importing the Content Type item, these RelationshipType items will be created automatically by default.