blockingInheritAttributes

open fun blockingInheritAttributes(fromTeiUid: String, toTeiUid: String, programUid: String): Unit

Inherit the tracked entity attribute values from one TEI to another. It only inherits attributes that are marked as "inherited=true" and that belong to program passed as parameter. This method is useful when creating new relationships. Inherited values are persisted in database. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version inheritAttributes.

Return

Unit

Parameters

fromTeiUid

TrackedEntityInstance to inherit values from.

toTeiUid

TrackedEntityInstance that receive the inherited values.

programUid

Only attributes associated to this program will be inherited.