Skip to main content

IncidentHandler

  • Namespace: PPDS.Migration.Import.Handlers
  • Assembly: PPDS.Migration
  • Kind: Class
  • Implements: IRecordTransformer, IStateTransitionHandler

Summary

Handles state transitions for incident (case) records. Both resolved and canceled states use CloseIncident.

Members

Methods

CanHandle

bool CanHandle(string entityLogicalName)

Determines whether this transformer applies to the given entity.

  • Param entityLogicalName: The entity logical name.

  • Returns: True if this transformer handles the entity.

GetTransition

StateTransitionData GetTransition(Entity record, ImportContext context)

Gets the state transition data for a record, or null if no transition is needed.

  • Param record: The record to evaluate.

  • Param context: The import context.

  • Returns: The state transition data, or null.

Transform

Entity Transform(Entity record, ImportContext context)

Transforms a record before import.

  • Param record: The record to transform.

  • Param context: The import context.

  • Returns: The transformed record.