Package wt.change2

Class ChangeProcessLink

All Implemented Interfaces:
Externalizable, Serializable, wt.change2._ChangeProcessLinkTypeInterface, wt.change2.ChangeProcessLinkTypeInterface, wt.fc._BinaryLink, wt.fc._Link, wt.fc._NetFactor, wt.fc._ObjectMappable, wt.fc._Persistable, wt.fc.archive._Archiveable, wt.fc.archive.Archiveable, BinaryLink, Link, NetFactor, ObjectMappable, Persistable, wt.federation._FederatedLinkHolder, wt.federation._RemotelyLinkable, wt.federation.FederatedLinkHolder, wt.federation.RemotelyLinkable, wt.iba.value._IBAHolder, wt.iba.value.IBAHolder, DisplayIdentification, wt.type._Typed, wt.type._TypeManaged, wt.type.FlexTyped, wt.type.Typed, wt.type.TypeManaged, wt.ufid._Federatable, wt.ufid.Federatable

@GenAsBinaryLink(superClass=FlexibleChangeLink.class, interfaces=wt.change2.ChangeProcessLinkTypeInterface.class, extendable=false, roleA=@GeneratedRole(name="parent",type=FlexibleChangeItem.class,supportedAPI=PUBLIC,cardinality=MANY,accessors=@PropertyAccessors(setExceptions={}),javaDoc="Parent change object (must have attribute FlexibleChangeItem.flexible = true)."), roleB=@GeneratedRole(name="child",type=FlexibleChangeItem.class,supportedAPI=PUBLIC,cardinality=MANY,accessors=@PropertyAccessors(setExceptions={}),javaDoc="Child change object (must have attribute FlexibleChangeItem.flexible = true).")) public final class ChangeProcessLink extends _ChangeProcessLink
Link for flexible change process associations between two FlexibleChangeItem objects (i.e., for operations where FlexibleChangeLinkType.PROCESS is specified). This link supersedes LegacyChangeLink when the change association mode is non-legacy. Role objects must implement FlexibleChangeItem and Typed, and extend VersionableChangeItem or ChangeItemResource.

Supported API: true

Extendable: false

See Also:
  • Method Details

    • newChangeProcessLink

      public static ChangeProcessLink newChangeProcessLink(FlexibleChangeItem parent, FlexibleChangeItem child) throws WTException
      Factory to create flexible change process link from parent and child objects.

      Supported API: true
      Parameters:
      parent - Parent FlexibleChangeItem object (role A).
      child - Child FlexibleChangeItem object (role A).
      Returns:
      New unpersisted ChangeProcessLink object initialized with parent and child objects.
      Throws:
      WTException
    • newChangeProcessLink

      public static ChangeProcessLink newChangeProcessLink(LegacyChangeLink legacyLink, boolean swapRoles, TypeIdentifier linkType) throws WTException
      Factory to convert a legacy change link to a change process link.

      Supported API: true
      Parameters:
      legacyLink - Persisted LegacyChangeLink from which to create new ChangeProcessLink. The replacement reference in this link is set to the new ChangeProcessLink, but must be persisted by caller.
      swapRoles - True to swap role A and B objects, false to retain legacy order.
      linkType - Type identifier of new ChangeProcessLink object (null for root type).
      Returns:
      New unpersisted ChangeProcessLink object to replace the legacy link (set as marked-for-delete).
      Throws:
      WTException