Runtime tools : Core components : CHA : Tasks : Context life cycle : Fetching data and destroying context
  
Fetching data and destroying context
The following scenarios focus on Data Fetching and Context destroying. These scenarios happen when user logs off, which is the last step of the transaction.
Scenario X (for Persistence Shared CHA or Memory Shared CHA)
1 Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
2 Get the value of the Context A using the APIs like getValueAt(), getKeyedCollection()
3 Unchain the Context A from the parent Context
4 Prune the Context A;
Scenario XI (for Persistence Shared CHA or Memory Shared CHA)
1 Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
2 Get Context B, one of the Children of the Context A
3 Get the value of the Context B using the APIs like getValueAt(), getKeyedCollection()
4 Unchain the Context B from the parent Context
5 Prune the Context B
Scenario XII (for Local CHA)
1 Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
2 Get the value of the Context A using the APIs like getValueAt(), getKeyedCollection()
3 Unchain the Context A from the parent Context
Scenario XIII (for Local CHA)
1 Use the API getContextbyInstanceID() to get the Context A with the given Instance ID
2 Get Context B, one of the Children of the Context A
3 Get the value of the Context B using the APIs like getValueAt(), getKeyedCollection()
4 Unchain the Context B from the parent Context A
Go up to
Context life cycle