blocking Inherit Attributes
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
from Tei Uid
TrackedEntityInstance to inherit values from.
to Tei Uid
TrackedEntityInstance that receive the inherited values.
program Uid
Only attributes associated to this program will be inherited.