Modify the ImportStrategyRegistry class

About this task

The final implementation step is to register your new import strategies. To register an import strategy:

Procedure

  1. In Studio, navigate to configuration > gsrc and edit the class gw.exportimport.entityimport.ImportStrategyRegistry.
  2. In the TYPE_STRATEGY_MAP variable declaration, map the entity you are configuring to your new import strategy. For example:
      static final var TYPE_STRATEGY_MAP : Map<Type, EntityImportStrategy> = {
        CPBuilding -> new CPBuildingImportStrategy(),
        CPLocation -> new CPLocationImportStrategy()
        PersonalVehicle -> new PersonalVehicleImportStrategy() 
      }