@DeclareRoles(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") @RunAs(value="org.imixs.ACCESSLEVEL.MANAGERACCESS") public class SetupService extends Object
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.
| Modifier and Type | Field and Description |
|---|---|
static String |
MODEL_INITIALIZED |
static String |
SETUP_OK |
| Constructor and Description |
|---|
SetupService() |
| Modifier and Type | Method and Description |
|---|---|
int |
getModelCount() |
void |
importXmlEntityData(byte[] filestream)
this method imports an xml entity data stream.
|
void |
migrateWorkflowScheduler()
This method migrates the deprecated WorkflowScheduelr configuraiton into the
new Imixs Scheduler API
|
void |
scanDefaultModels()
This method loads the default model if no models exist in the current
instance
|
void |
startup()
This method start the system setup during deployment
|
public static String SETUP_OK
public static String MODEL_INITIALIZED
public int getModelCount()
@PostConstruct public void startup()
AccessDeniedExceptionpublic void scanDefaultModels()
public void importXmlEntityData(byte[] filestream)
event - Exceptionpublic void migrateWorkflowScheduler()
Copyright © 2006–2019 Imixs Software Solutions GmbH. All rights reserved.