IBM Enterprise Records, Version 5.1.2    

Creating links

A link represents a relationship between two objects-its object-valued Head and Tail properties define the relationship. The Head link represents the object that serves as the logical head of the link, while the Tail link represents the object that serves as the Tail link.

You can create links between records and record folders only. By creating links, you can reference or associate supporting and related records and information, such as notes, attachments, and email-return receipts to a specified record.

In RM, links are implemented through the RMLink class. Before calling the RMLink class, you must associate the object type with the link action, and define the different links and their properties. This section discusses how to do both of these tasks.

To implement links, you must subscribe the object type to the link action. These subscriptions are defined in the Actions.xml file. You can find this file at the following location:<RM Installation Directory>\FileNet\RecordsManager\WEB_INF.

Open Actions.xml and define the object type in the action definition of Create Link, as shown in the following code snippet:
<object key =" actionDefinition "> 
   <setting key =" id "> createLink </setting> 
   <setting key =" title "> Create Link </setting> 
   <setting key =" url "> 
      wizards/RMCreateLink.jsp? 
          selectEventName=StateChanged& 
          selectEventTarget=objectInfo& 
          op=StartWizard& 
             id={OBJECT_ID}& 
          label={OBJECT_LABEL}& 
          objectStoreName={OBJECT_STORE_NAME}& 
          majorVersion={MAJOR_VERSION}& 
          minorVersion={MINOR_VERSION}& 
          versionStatus={VERSION_STATUS}& 
          objectType={OBJECT_TYPE}& 
          vsId={VERSION_SERIES_ID}& 
          mimeType={CONTENT_TYPE}& 
          returnUrl={RETURN_URL}
   </setting>
   <setting key =" img "> images/state/Compound16.gif </setting> 
   <setting key =" showInPath "> false </setting> 
   <array key =" objectTypes "> 
   <value> 301 </value> 
   <value> 302 </value> 
   <value> 303 </value> 
   <value> application/x-filenet-rm-folder </value> 
   <value> application/x-filenet-rm-folderhybrid </value> 
   <value> application/x-filenet-rm-physicalfolder </value>
</array>

By default, RM subscribes the RecordInfo and RecordFolder object types to the link action, as shown in the code snippet shown earlier in this topic.

After you subscribe the object type with the Create Link definition, display the links on the RM UI by calling CreateLinks.jsp, passing the classID of the RMLink class.



Feedback

Last updated: November 2013
ierdg030.htm

© Copyright IBM Corporation 2013