resumeTransformation MethodStatic

Deprecated  in 0.1.x, this is buggy, and with 1.x it will be equivalently efficient to simply restart the transformation

from the original changeset

Return a new transformer instance with the same remappings state as saved from a previous saveStateToFile call. This allows you to "resume" an iModel transformation, you will have to call processChanges/processAll again but the remapping state will cause already mapped elements to be skipped. To "resume" an iModel Transformation you need:

  • the sourceDb at the same changeset
  • the same targetDb in the state in which it was before

resumeTransformation(this: SubClass, statePath: string, ...constructorArgs: ConstructorParameters<SubClass>): InstanceType<SubClass>

@note custom transformers with custom state may need to override this method in order to handle loading their own custom state somewhere

Parameter Type Description
this SubClass  
statePath string the path to the serialized state of the transformer, use saveStateToFile to get this from an existing transformer instance
...constructorArgs ConstructorParameters<SubClass> remaining arguments that you would normally pass to the Transformer subclass you are using, usually (sourceDb, targetDb)

Returns - InstanceType<SubClass>

Defined in

Last Updated: 31 October, 2025