Class FlexibleChangeLinkConverterDelegate

java.lang.Object
wt.change2.flexible.FlexibleChangeLinkConverterDelegate
Direct Known Subclasses:
DefaultFlexibleChangeLinkConverterDelegate

public abstract class FlexibleChangeLinkConverterDelegate extends Object
Delegate class that encapsulates configurable and customizable code needed to convert legacy to flexible change links. The OOTB implementation of this class converts FormalizedBy and AddressedBy2 links to flexible ChangeProcessLink objects. The OOTB implementation uses special configuration files for converting legacy to flexible links.The role order and link type are specified in special configuration files that is used only by the conversion utility All concrete extensions of LegacyChangeLink must have a definition file that specifies the contents of one or more LinkConverterRule objects. LinkConverterRule definitions are configured in .csv files that are located and named as: $WT_HOME\codebase\wt\change2\flexible\LinkConverterRule..csv
OOTB LinkConverterRule definition files are located and named as: $WT_HOME\codebase\wt\change2\flexible\LinkConverterRule.wt.change2.FormalizedBy.csv $WT_HOME\codebase\wt\change2\flexible\LinkConverterRule.wt.change2.AddressedBy2.csv
Example custom LinkConverterRule definition file is located and named as: $WT_HOME\codebase\wt\change2\flexible\LinkConverterRule.com.acme.CustomFormalizedBy.csv
Supported API: true

Extendable: true
  • Method Details

    • convertLink

      public ChangeProcessLink convertLink(LegacyChangeLink legacyLink) throws WTException
      The method is called to convert a legacy link as an unpersisted ChangeProcessLink. The default implementation will set the role object order and the link soft type according to the link conversion rules. In order to support legacy change items on the process link, it is created with the marked for delete bit set. Installations that require custom conversion can override this method, and if needed, call the super implementation.
      Parameters:
      legacyLink -
      Returns:
      non-persisted ChangeProcessLink
      Throws:
      WTException -
      Supported API: true
    • postStoreUpdate

      public abstract void postStoreUpdate(WTValuedMap legacyToFlexibleLinkMap) throws WTException
      The method is called to update converted ChangeProcessLink objects after they have been persisted. Custom delegates can use this method to copy custom attributes from an extended legacy link class to ChangeProcessLink soft attributes. Implementations of this method are responsible for persisting changes they make to the links.
      Parameters:
      legacyToFlexibleLinkMap - - A WTValuedMap of legacy link (key) to its persisted ChangeProcessLink (value)
      Throws:
      WTException -
      Supported API: true