Interface OrgModelInitialiser


  • public interface OrgModelInitialiser
    The OrgModelInitialiser provides the means to initialise the OrgModel during the startup of the OrgModelManager. All operations are performed via a reference to the OrgModelManager that is to be set when constructing the initialiser.

    Since the OrgModelManager is one of the first services to be started, be aware that almost no other services will be available at the time run() is called. This especially makes things like checking templates and process instances impossible, since the process manager is not booted yet.

    Please note, that initialBootOnly() does not strictly guarantee that an OrgModelInitialiser is only executed a single time. Also, there is no transaction around the changes made to the OrgModel within run(). For these reasons, OrgModelInitialisers must always be implemented in a way that allows them to continue from where they left off or detect if they were already executed.

    • Method Detail

      • run

        void run()
          throws Exception
        Calls the initialisation for the OrgModel. The specific changes and/or data provided is solely up to the implementing class.
        Throws:
        Exception - if an error occurs manipulating the OrgModel
      • initialBootOnly

        boolean initialBootOnly()
        Defines whether or not this initialiser should only be executed during the initial boot of the OrgModelManager. However, this is not strict guarantee that it is executed only once.
        Returns:
        true, if the initialiser should only be called during the first boot, false, if it should be called on every boot.