Klasse SetupService
During startup, the service loads a default model defined by the optional environment variable 'MODEL_DEFAULT_DATA'. This variable can point to multiple model resources separated by a ';'. A model resource file must have the file extension '.bpmn'.
The variable can be defined also in the imixs.properties file. In this case the variable is named: 'model.default.data'.
Optional it is also possible to provide setup workflow initial data in a XML file.
Finally the service starts optional registered scheduler services.
With the method 'getModelCount' the service returns the current status of the workflow engine by returning the count of valid workflow models.
The SetupSerivce has a migration method to migrate old Workflow Schedulers into the new Scheduler concept. The method migrateWorkflowScheduler is nust for migration and can be deprecated in future releases.
- Version:
- 1.0
- Autor:
- rsoika
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic Stringstatic Stringprotected jakarta.enterprise.event.Event<SetupEvent> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanCheck database accessbooleanCheck database indexintReturns the count of available model versionsvoidimportModelFromStream(InputStream inputStream) Imports a single .bpmn file from a inputStreamvoidimportXmlEntityData(byte[] filestream) this method imports an xml entity data stream.voidimportXMLFromStream(InputStream inputStream) Imports a single xml data file from a inputStreamvoidThis method migrates the deprecated WorkflowScheduelr configuration into the new Imixs Scheduler APIvoidThis method loads the default model if no models exist in the current instancevoidstartup()This method start the system setup during deployment
-
Felddetails
-
SETUP_OK
-
MODEL_INITIALIZED
-
setupEvents
-
-
Konstruktordetails
-
SetupService
public SetupService()
-
-
Methodendetails
-
startup
@PostConstruct public void startup()This method start the system setup during deployment- Löst aus:
AccessDeniedException
-
getModelVersionCount
public int getModelVersionCount()Returns the count of available model versions- Gibt zurück:
-
checkDatabase
public boolean checkDatabase()Check database access- Gibt zurück:
- true if database access was successful
-
checkIndex
public boolean checkIndex()Check database index- Gibt zurück:
- true if database index access was successful
-
scanDefaultModels
public void scanDefaultModels()This method loads the default model if no models exist in the current instance -
importModelFromStream
Imports a single .bpmn file from a inputStream- Parameter:
modelResource-
-
importXMLFromStream
Imports a single xml data file from a inputStream- Parameter:
inputStream-
-
importXmlEntityData
public void importXmlEntityData(byte[] filestream) this method imports an xml entity data stream. This is used to provide model uploads during the system setup. The method can also import general entity data like configuration data.- Parameter:
event-- Löst aus:
Exception
-
migrateWorkflowScheduler
public void migrateWorkflowScheduler()This method migrates the deprecated WorkflowScheduelr configuration into the new Imixs Scheduler API
-