Link-Objects method |
Use this method to create an instance of a concrete class derived from the Link- base class. A link functions as a bidirectional cross reference to associate two objects together.
For example, instances of the standard Link-Attachment class associate attachments of various types with work object history instances. The properties in this class identify the work object ID, the attachment's class and key, and the date and time of the history instance. (Attachments themselves belong to a different concrete class, one derived from the Data-WorkAttach- class.) SR-18104 B-9128
This method has several parameters. The last two form an array of property names (not arbitrary property references) and property values.
Parameter |
Description |
LinkToPage | Enter the name of an existing clipboard page that is to be linked to the step page. MARIK 2/14/05must BE top-level? |
LinkClass | Enter the concrete class for the
linked objects, a class derived from the Link- base
class. To create a work object attachment, enter
Link-Attachment . |
LinkModel | Optional. Enter the name of a model in the LinkClass class, or a parent class of that class. |
LinkMemo | Optional. Enter text that becomes the pyMemo value of the link object. |
WriteHistory | Select this box to instruct the system to record this processing in the object's history. The history instance is added to the History- class corresponding to the step page. |
LinkPageProperty | Optional. Enter in this array a property or properties to be set by this method. vague |
LinkPageValue | Optional. Enter a value for each property, a literal or a property reference. |
For instances of the Link-Attachment class, the system forms the key from the class name pxLinkedRefFrom property value (for example PEGASAMPLE W-153) and the date and time of the save operation, ensuring uniqueness.
This method updates the pxMethodStatus property. See How to test method results using a transition.
Working with the PegaRULES database — Link- and Index- tables |