Java Code Examples for org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl#getRuntimeService()
The following examples show how to use
org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl#getRuntimeService() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MyStartFormHandler.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public void submitFormVariables(VariableMap properties, VariableScope variableScope) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); IdentityService identityService = processEngineConfiguration.getIdentityService(); RuntimeService runtimeService = processEngineConfiguration.getRuntimeService(); logAuthentication(identityService); logInstancesCount(runtimeService); }
Example 2
Source File: MyStartFormHandler.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public StartFormData createStartFormData(ProcessDefinitionEntity processDefinition) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); IdentityService identityService = processEngineConfiguration.getIdentityService(); RuntimeService runtimeService = processEngineConfiguration.getRuntimeService(); logAuthentication(identityService); logInstancesCount(runtimeService); StartFormDataImpl result = new StartFormDataImpl(); result.setProcessDefinition(processDefinition); return result; }
Example 3
Source File: MyFormFieldValidator.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public boolean validate(Object submittedValue, FormFieldValidatorContext validatorContext) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); IdentityService identityService = processEngineConfiguration.getIdentityService(); RuntimeService runtimeService = processEngineConfiguration.getRuntimeService(); logAuthentication(identityService); logInstancesCount(runtimeService); return true; }
Example 4
Source File: MyTaskFormHandler.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public void submitFormVariables(VariableMap properties, VariableScope variableScope) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); IdentityService identityService = processEngineConfiguration.getIdentityService(); RuntimeService runtimeService = processEngineConfiguration.getRuntimeService(); logAuthentication(identityService); logInstancesCount(runtimeService); }
Example 5
Source File: MyTaskFormHandler.java From camunda-bpm-platform with Apache License 2.0 | 5 votes |
public TaskFormData createTaskForm(TaskEntity task) { ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); IdentityService identityService = processEngineConfiguration.getIdentityService(); RuntimeService runtimeService = processEngineConfiguration.getRuntimeService(); logAuthentication(identityService); logInstancesCount(runtimeService); TaskFormDataImpl result = new TaskFormDataImpl(); result.setTask(task); return result; }
Example 6
Source File: ProcessEngineImpl.java From camunda-bpm-platform with Apache License 2.0 | 4 votes |
public ProcessEngineImpl(ProcessEngineConfigurationImpl processEngineConfiguration) { this.processEngineConfiguration = processEngineConfiguration; this.name = processEngineConfiguration.getProcessEngineName(); this.repositoryService = processEngineConfiguration.getRepositoryService(); this.runtimeService = processEngineConfiguration.getRuntimeService(); this.historicDataService = processEngineConfiguration.getHistoryService(); this.identityService = processEngineConfiguration.getIdentityService(); this.taskService = processEngineConfiguration.getTaskService(); this.formService = processEngineConfiguration.getFormService(); this.managementService = processEngineConfiguration.getManagementService(); this.authorizationService = processEngineConfiguration.getAuthorizationService(); this.caseService = processEngineConfiguration.getCaseService(); this.filterService = processEngineConfiguration.getFilterService(); this.externalTaskService = processEngineConfiguration.getExternalTaskService(); this.decisionService = processEngineConfiguration.getDecisionService(); this.databaseSchemaUpdate = processEngineConfiguration.getDatabaseSchemaUpdate(); this.jobExecutor = processEngineConfiguration.getJobExecutor(); this.commandExecutor = processEngineConfiguration.getCommandExecutorTxRequired(); commandExecutorSchemaOperations = processEngineConfiguration.getCommandExecutorSchemaOperations(); this.sessionFactories = processEngineConfiguration.getSessionFactories(); this.historyLevel = processEngineConfiguration.getHistoryLevel(); this.transactionContextFactory = processEngineConfiguration.getTransactionContextFactory(); executeSchemaOperations(); if (name == null) { LOG.processEngineCreated(ProcessEngines.NAME_DEFAULT); } else { LOG.processEngineCreated(name); } ProcessEngines.registerProcessEngine(this); if ((jobExecutor != null)) { // register process engine with Job Executor jobExecutor.registerProcessEngine(this); } if (processEngineConfiguration.isMetricsEnabled()) { String reporterId; // only use a deprecated, custom MetricsReporterIdProvider, // if no static hostname AND custom HostnameProvider are set. // See ProcessEngineConfigurationImpl#initHostname() if (processEngineConfiguration.getMetricsReporterIdProvider() != null && processEngineConfiguration.getHostnameProvider() instanceof SimpleIpBasedProvider) { reporterId = processEngineConfiguration.getMetricsReporterIdProvider().provideId(this); } else { reporterId = processEngineConfiguration.getHostname();; } DbMetricsReporter dbMetricsReporter = processEngineConfiguration.getDbMetricsReporter(); dbMetricsReporter.setReporterId(reporterId); if(processEngineConfiguration.isDbMetricsReporterActivate()) { dbMetricsReporter.start(); } } }