Section II – Functional Modules > Interaction Interface > Associating Interactions Bottom of Page
| Genesys 8.0 SCXML Technical Reference
< Behavior Model Addressing Resources >

## Associating Interactions

#### Moving an Interaction's Association from One Session to Another

There are certain use cases where an interaction that is currently associated with a session needs to be moved to another session. This process is iniated by the session that is currently associated with the interaction. The following is an example of the process for moving an interaction's association to a different session:

1. When the owning session determines that an interaction that it is working with needs to be associated with another session, the session will associate this interaction using the `<associate>` action.
2. The Interaction functional module will do the necessary processing and associate the interaction with the target session by doing the following:

1. Add the interaction to the list of interactions associated with this session (that is, change the _genesys.ixn.interactions[] object)
2. Do the necessary interaction-specific actions to associate this interaction with the functional module and the corresponding the session.
3. Send the session the appropriate events (interaction.added, interaction.present)

3. The Interaction functional module will then remove the interaction from the original session and send the appropriate events (interaction.deleted, interaction.notcontrolled).

Section II – Functional Modules > Interaction Interface > Associating Interactions Top of Page
| Genesys 8.0 SCXML Technical Reference
< Behavior Model Addressing Resources >