Interface OrgModelInitialiser
-
public interface OrgModelInitialiser
TheOrgModelInitialiser
provides the means to initialise the OrgModel during the startup of theOrgModelManager
. 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 timerun()
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 anOrgModelInitialiser
is only executed a single time. Also, there is no transaction around the changes made to the OrgModel withinrun()
. 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
initialBootOnly()
Defines whether or not this initialiser should only be executed during the initial boot of theOrgModelManager
.void
run()
Calls the initialisation for the OrgModel.
-
-
-
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 theOrgModelManager
. 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.
-
-