Example implementation of a boot sequence for a software component, that loads it's own environment as a graph of RalObjects.
The Boot Sequence does the following:
- Loads a RalObject from a local file
- The RalObject contains 3 informations (SpecificProperties) for the further boot sequence:
localDatabaseConnection
: a string for the connection to a local databaseremoteDatabaseConnectionUID
: the uid of another RalObject, that contains the informations to connect to a remote databasediscoveryDimensions
the dimensions of the discovery process
- The Boot Sequence connects to the local database
- Execution of the local discovery
- searches for the root node in the local database defined by a RALType
- recursive discovery of all RalObjects starting with the root node
- Loads the RalObject from the remote database defined by the
remoteDatabaseConnectionUID
- Tries to connect to the remote database using the informations form the RalObject of the previous step
- Execution of the remote discovery
- searches for the root node in the remote database defined by a RALType
- recursive discovery of all RalObjects starting with the root node
- returns the result of the BootSequence as two GraphNodes, one for the local discovery, one for the remote discovery