Creating and terminating relationships
NLF examples
The following is an example of creating a RelDefAccessGroup relationship:
.SPFRelDefAccessGroup
..Name1|SPFDocRevisionLabel
..Name2|SystemAdmin
..ContainerID|DEVAuthoring.NLF
The following is an example of terminating the relationship created above.
.SPFRelDefAccessGroup
..Name1|SPFDocRevisionLabel
..Name2|SystemAdmin
..Action|Terminate
The following is an example of creating a relationship with relationship properties and relationships. This example configures the RelDefAccessGroup relationship with all its properties, such as Manage Access Groups.
.SPFRelDefAccessGroup
..Name1|SPFDocRevisionLabel
..Name2|SystemAdmin
..ContainerID|DEVAuthoring.NLF
..SPFRelDragDrop1on2|True
..SPFRelDragDrop2on1|True
..SPFRelExpand1to2|True
..SPFRelExpand2to1|True
..SPFCondition|CND_IsObj1WORKING|SPFRelDefAccessGroupDDCondition_12
Creating a relationship to an existing relationship
The following load file is an example of creating a condition relationship.
# Create the drag drop condition relationship on the relDefAccessgrouop relationship
.SPFRelDefAccessGroupDDCondition
..Name1|Rel|SPFRelDefAccessGroup|SPFDocRevisionLabel|DocumentUpdate
..Name2|IsObj1WORKING
..ContainerID|DEVAuthoring.NLF
XML example
The following is an example of using a fully qualified XML-based load file with this operation. This excerpt was taken from the model build file ADMIN_DocMgt.xml available on Smart Community. For more information, see Find sample data on Smart Community.
To relate the access group to the RelDef, do the following:
<Rel>
<IObject UID="SPFDocRevisionLabel.DocumentUpdate" Name="" Description="" ContainerID="Core.DocMgt" />
<IRel UID2="MAG_DocumentUpdate" DefUID="SPFRelDefAccessGroup" UID1="SPFDocRevisionLabel" OrderValue="0" IsRequired="False" />
<ISPFRelDefAccessGroup SPFRelTerminate="True" SPFRelDragDrop2on1="True" />
</Rel>
To create the relationship between the RelDef-access group relationship and the condition, do the following:
<Rel>
<IObject UID="SPFDocRevisionLabel.DocumentUpdate.CND_IsObj1WORKING" Name="" Description="" ContainerID="" />
<IRel UID2="CND_IsObj1WORKING" DefUID="SPFRelDefAccessGroupDDCondition" UID1="SPFDocRevisionLabel.DocumentUpdate" OrderValue="0" IsRequired="False" />
</Rel>
Terminating a relationship to relationship
NLF example
The following load file is an example of terminating a relationship.
# Terminate the drag drop condition relationship on the relDefAccessgroup relationship
.SPFRelDefAccessGroupDDCondition
..Name1|Rel|SPFRelDefAccessGroup|SPFDocRevisionLabel|DocumentUpdate
..Name2|IsObj1WORKING
..Action|Terminate
XML example
The following is an example of using a fully qualified XML-based load file with this operation. This excerpt was taken from the model build file ADMIN_DocMgt.xml available on Smart Community. For more information, see Find sample data on Smart Community.
<DeleteInstruction>
<IObject UID="Delete_SPFLLALineListRecordDocumentVersion.ISPFAuthPublishableDocumentVersion" Name="Delete_SPFLLALineListRecordDocumentVersion.ISPFAuthPublishableDocumentVersion" />
<IRefObject RefClass="" RefUID="SPFLLALineListRecordDocumentVersion.ISPFAuthPublishableDocumentVersion" RefName="" />
<IInstruction />
<IDeleteInstruction DeleteTransition="Terminated" />
</DeleteInstruction>