Understanding the Data Service Events Hooks

When a bean implements ScenarioDataEventsHandler (Javadoc), the Platform framework will automatically call its methods when schema checkers are executed or when scenario data are modified using the GeneTransactionalQuery API (i.e. user data modifications in the web client)

This interface defines two methods onDataUpdated, and onSchemaCheckCompleted.

  • onDataUpdated will be called every time scenario data are modified by a GeneTransactionalQuery and will provide

    • the modified scenario ID

    • the id of the transactional query that modified the data

    • the GeneTransactionalQuery query object

  • onSchemaCheckCompleted will be called every time the data checkers have run and will provide

    • the scenario ID

    • the new ScenarioDataStatus