Class LifecycleConflictResolver

All Implemented Interfaces:
IXConflictResolverIfc

public class LifecycleConflictResolver extends IXMultiObjectConflictResolver
The life-cycle template and state conflict resolver. It handles all the conflicts related to a life-cycle template and state.
  • Default resolution:
    • Default resolution as per importer.
  • Available resolution:
    • Default resolution as per importer.
    • Use a default value as specified through a property.
    • Use the OIR and let the system choose an appropriate lifecycle and lifecycle state.
    • Carry forward values from previous iteration on the same version.


Supported API: true

Extendable: true
  • Method Details

    • resolve

      public Object resolve(ResolutionType resolutionType, IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Tries to resolve the conflict using the provided resolution. If the resolution is of type 'DEFAULT_VALUE_LC' or 'OIR_LC' or 'FROM_PREVIOUS_ITERATION_LC' or FROM_PREVIOUS_ITERATION_OR_OIR_LC, resolves it else, delegates the task to the super class.

      Supported API: true
      Specified by:
      resolve in interface IXConflictResolverIfc
      Overrides:
      resolve in class IXDefaultConflictResolver
      Parameters:
      resolutionType - The resolution type.
      fileXML - The IxbElement.
      importer - The context.
      arguments - Object[], arguments for resolver.
      Returns:
      Object, Any object if required to be returned or else a Boolean for success or failure.
      Throws:
      WTException
      See Also:
    • resolveLCConflictWithDefaultValue

      protected Object resolveLCConflictWithDefaultValue(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Use a default value as specified through a property.

      Supported API: true
      Parameters:
      fileXML - The IxbElement.
      importer - Importer context.
      arguments - Object[], arguments for resolver.
      Returns:
      TRUE if resolved successfully, else FALSE.
      Throws:
      WTException
    • resolveLCConflictWithOIR

      protected Object resolveLCConflictWithOIR(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Use the OIR and let the system choose an appropriate lifecycle and lifecycle state.

      Supported API: true
      Parameters:
      fileXML - The IxbElement.
      importer - Importer context.
      arguments - Object[], arguments for resolver.
      Returns:
      TRUE if resolved successfully, else FALSE.
      Throws:
      WTException
    • resolveLCConflictWithPreviousIteration

      protected Object resolveLCConflictWithPreviousIteration(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Carry forward values from previous iteration on the same version.

      Supported API: true
      Parameters:
      fileXML - The IxbElement.
      importer - Importer context.
      arguments - Object[], arguments for resolver.
      Returns:
      TRUE if resolved successfully, else FALSE.
      Throws:
      WTException
    • resolveLCConflictWithPreviousIterationOrOIR

      protected Object resolveLCConflictWithPreviousIterationOrOIR(IxbElement fileXML, Importer importer, Object[] arguments) throws WTException
      Carry forward values from previous iteration on the same version, if previous version does not exist then take values from OIR

      Supported API: true
      Parameters:
      fileXML - The IxbElement.
      importer - Importer context.
      arguments - Object[], arguments for resolver.
      Returns:
      TRUE if resolved successfully, else FALSE.
      Throws:
      WTException