Regarding the transfer of data between different boundaries

Hello, I would like to transfer the calculation results (temperature or heat flux density) on one edge of domain 1 to an edge of domain 2 as a boundary condition for domain 2. Currently, the meshes on these two boundaries are matched but with different lengths (for example, the inner and outer edges of two concentric rings). I have several questions about this process:

1.Can boundaries with matched meshes but different lengths achieve the data transfer process?

2.Actually, the results extracted from the boundary of domain 1 are just discrete data at the mesh nodes. However, only continuous data can serve as a boundary condition for another domain. Does FEniCS automatically perform this transformation from discrete to continuous, or does it need to be done by the programmer? If it needs to be done by the programmer, what specific steps are required?

I hope to receive relevant explanations, thank you!