Using lifecycle methods with data items

In addition to SetConfiguration and GetConfiguration, there are three more lifecycle methods: BeforeLoad, AfterLoad, and BeforeGetConfiguration. The order of lifecycle methods is:

  1. SetConfiguration: Executed when clicking on the tool to select.
  2. BeforeLoad: Executed before the data stores are loaded. Used to manually configure data stores.
  3. AfterLoad: Executed after the data stores have been loaded. Used to trigger application logic.
  4. BeforeGetConfiguration: Executed before the GetConfiguration event is fired.
  5. GetConfiguration: Executed before deselecting the tool by clicking on the canvas.